You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 30, 2024. It is now read-only.
Hello 👋🏽 Describe the bug
I specify a timeout for the client and then I keep getting this error
warn: [LaunchDarkly]ReceivedI/Oerror(Readtimeout,receivednodatain300000ms,assumingconnection is dead)forstreamingrequest-willretry[api]info: [LaunchDarkly]Willretrystreamconnectionin1000milliseconds[workers]warn: [LaunchDarkly]ReceivedI/Oerror(Readtimeout,receivednodatain300000ms,assumingconnection is dead)forstreamingrequest-willretry[workers]info: [LaunchDarkly]Willretrystreamconnectionin1000milliseconds[api]TypeError: The"listener"argumentmustbeoftypefunction.ReceivedaninstanceofObject
To reproduce
I'm creating a client once in my app like this:
exportconstldClient=LaunchDarkly.init(`${LAUNCH_DARKLY_API_KEY}`,{offline: NODE_ENV===Env.TEST,// to avoid calling LD while performing teststimeout: 24*60*60,// 1 day })
Yet I still face the error mentioned above, is there any good practice to keep a larger timeout? as it makes us restart our API in local dev.
Expected behavior
To keep a longer timeout at least for our local dev environment.
SDK version
^6.2.2
Language version, developer tools
Typescript: ^4.3.5
OS/platform
MacOS 12.2.1 (Monterey)
** Node Version **
Node 16.4.0 (LTS)
Zorkham, Vico-P, P2Beauchene, Kenny407, nick-keller and 3 more