Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Frequent Installation Failures with RxDB Premium Due to Fetch Timeout #6759

Open
morfees opened this issue Jan 11, 2025 · 0 comments
Open

Frequent Installation Failures with RxDB Premium Due to Fetch Timeout #6759

morfees opened this issue Jan 11, 2025 · 0 comments

Comments

@morfees
Copy link

morfees commented Jan 11, 2025

We are encountering frequent failures when installing rxdb-premium due to a timeout error during the postinstall script execution. This issue results in prolonged installation times (up to 8 minutes in some cases) as we have implemented a retry mechanism to mitigate the problem. Despite this, the fetch often fails, and the process becomes highly inefficient.

Environment:
• Node.js version: v18.16.1
• RxDB Premium version: 15.39.0
• System: GitLab CI/CD runner

Steps to Reproduce:
1. Add rxdb-premium as a dependency in a project.
2. Run npm install in a CI/CD pipeline (e.g., GitLab runner).
3. Observe the intermittent fetch failures during the installation process.

npm ERR! # Download JSON from https:/premium.rxdb.info/access-tokens/xyz.json
npm ERR! node:internal/deps/undici/undici:11457
npm ERR!     Error.captureStackTrace(err, this);
npm ERR!           ^
npm ERR! 
npm ERR! TypeError: fetch failed
npm ERR!     at Object.fetch (node:internal/deps/undici/undici:11457:11)
npm ERR!     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
npm ERR!     at async f (/home/gitlab-runner/builds/XuUjxDCd/1/frontoffice_ad/apside/hub360/front/hub360-pwa/node_modules/rxdb-premium/scripts/installer.js:1:2453)
npm ERR!     at async u (/home/gitlab-runner/builds/XuUjxDCd/1/frontoffice_ad/apside/hub360/front/hub360-pwa/node_modules/rxdb-premium/scripts/installer.js:1:1182) {
npm ERR!   cause: ConnectTimeoutError: Connect Timeout Error
npm ERR!       at onConnectTimeout (node:internal/deps/undici/undici:8422:28)
npm ERR!       at node:internal/deps/undici/undici:8380:50
npm ERR!       at Immediate._onImmediate (node:internal/deps/undici/undici:8411:13)
npm ERR!       at process.processImmediate (node:internal/timers:476:21) {
npm ERR!     code: 'UND_ERR_CONNECT_TIMEOUT'
npm ERR!   }
npm ERR! }
npm ERR! 
npm ERR! Node.js v18.16.1

Observations:
• The issue appears to stem from network-related timeouts when fetching JSON from https://premium.rxdb.info/access-tokens/....
• The retries significantly extend the installation time without guaranteeing success.

Can you fix this or provide guidance on how to reduce these fetch failures ?

Thank you !

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant