Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Network Timeout Error in Unleash Client #624

Open
achraf-workspace opened this issue Jun 10, 2024 · 3 comments
Open

Network Timeout Error in Unleash Client #624

achraf-workspace opened this issue Jun 10, 2024 · 3 comments
Assignees
Labels

Comments

@achraf-workspace
Copy link

Describe the bug

While initializing the feature flags using the unleash-client in our Node.js application, we occasionally encounter a FetchError: network timeout. The timeout error happens when attempting to register with the unleash server as shown by this URL: https://gitlab.com/api/v4/feature_flags/unleash/<PROJECT_ID>/client/register

This error disrupts the normal initialization flow of our application's feature flag mechanism.

This error is thrown occasionally but not always. An investigation into possible networking issues, unleash server load or other possible causes would greatly help us to resolve the issue.

Steps to reproduce the bug

No response

Expected behavior

The expected behavior is that unleash-client should successfully register with the unleash server and initialize without throwing any network timeout errors.

Logs, error output, etc.

FetchError: network timeout at: https://gitlab.com/api/v4/feature_flags/unleash/<PROJECT_ID>/client/register
    at Timeout.<anonymous> (/app/node_modules/minipass-fetch/lib/index.js:108:18)
    at listOnTimeout (node:internal/timers:573:17)
    at processTimers (node:internal/timers:514:7) {
  code: 'FETCH_ERROR',
  errno: 'FETCH_ERROR',
  type: 'request-timeout'
}

Screenshots

No response

Additional context

No response

Unleash version

4.1.0

Subscription type

None

Hosting type

None

SDK information (language and version)

No response

@chriswk
Copy link
Member

chriswk commented Jun 11, 2024

Hi. Since you're using gitlab as your feature flag provider, we have no insight into their load or availability metrics. Reach out to Gitlab if you want help with seeing their availability

@chriswk chriswk self-assigned this Jun 11, 2024
@chriswk chriswk moved this from New to In Progress in Issues and PRs Jun 11, 2024
@giladkoch
Copy link

Hey, Is there any update on this issue? We encounter this issue when using the node unleash client

@gastonfournier
Copy link
Contributor

Hi @giladkoch that endpoint call client/register is a call that the SDK makes when you have metrics enabled and Gitlab does not support that protocol. So to get rid of that error you should disable metrics in Unleash SDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In Progress
Development

No branches or pull requests

4 participants