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)
Hello 👋🏽
Describe the bug
I specify a timeout for the client and then I keep getting this error
To reproduce
I'm creating a client once in my app like this:
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)