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
- Chat App with Appwrite
Hey guys, I'm adding a chat feature to my app, to some extent alot of things is working work fine, but i have an issue i want to be able to check on the status ...
- How to select related data in AppWrite b...
I am building a simple blogging system. I have Posts and Categories. The Categories have their own collection. I want to include a Category in every post. One c...
- User (role: guests) missing scope (accou...
Hi guys, currently facing issue on get current session using get account sdk. Issue: User (role: guests) missing scope (account) This error happen when i call...