Function executes differently on localhost and live client (puppeteer)
- 0
- Self Hosted
- Functions
- Web
- Storage
Appwrite v1.5.4 hosted on Digitalocean, Node 18.0 Function running puppeteer generates Pdf documents. The PDF document generated when the function is called from localhost has all the styles, but when called from the live site [app.domian.com], the document copies patches of the CSS
[localhost] [live client]
build command
apk update && apk fetch chromium nss freetype harfbuzz ca-certificates ttf-freefont && npm i
build logs
Building ...
fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz
v3.19.1-369-gdacd3ce82f7 [https://dl-cdn.alpinelinux.org/alpine/v3.19/main]
v3.19.1-369-gdacd3ce82f7 [https://dl-cdn.alpinelinux.org/alpine/v3.19/community]
OK: 22991 distinct packages available
Downloading ca-certificates-20240226-r0
Downloading chromium-123.0.6312.105-r0
Downloading font-freefont-20120503-r4
Downloading freetype-2.13.2-r0
Downloading harfbuzz-8.3.0-r0
Downloading nss-3.98-r0
added 127 packages, and audited 128 packages in 17s
13 packages are looking for funding
run `npm fund` for details
2 moderate severity vulnerabilities
To address all issues, run:
npm audit fix
Run `npm audit` for details.
npm notice
npm notice New minor version of npm available! 10.2.4 -> 10.5.1
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.5.1>
npm notice Run `npm install -g npm@10.5.1` to update!
npm notice
Packing build ...
Build finished.```
Recommended threads
- Argument of type '"top"' is not assignab...
Hi there! Can someone take a look at my code? I followed the steps from the instruction video, and yet this error appeared out of nowhere. The error is what I m...
- Success Deployed 0 functions
I try to deploy function using CLI and after command `appwrite deploy function` I choose the function and see the next message: `✓ Success Deployed 0 functions`...
- API key doesn't have permission even tho...
Hi All, I seem to be having issues with nodejs and the sdk. I've setup an API key which has all scopes for the project, but I keep getting the "The current us...