Closed karl-run closed 1 year ago
https://github.com/Unleash/unleash-client-nextjs/blob/main/lib/src/getFrontendFlags.ts#L20-L23
The promise isn't rejected on error, so when "ready" is never triggered, the code hangs forever.
getFrontendFlags
Unleash: unable to fetch feature toggles
The promise should reject when it fails.
No response
None
I tried patching node_modules with this change in my app: #36. Seems to work as expected.
Describe the bug
https://github.com/Unleash/unleash-client-nextjs/blob/main/lib/src/getFrontendFlags.ts#L20-L23
The promise isn't rejected on error, so when "ready" is never triggered, the code hangs forever.
Steps to reproduce the bug
getFrontendFlags
without a running unleash-proxy availableUnleash: unable to fetch feature toggles
is logged, but promise remains unresolved.Expected behavior
The promise should reject when it fails.
Logs, error output, etc.
No response
Screenshots
No response
Additional context
No response
Unleash version
No response
Subscription type
None
Hosting type
None
SDK information (language and version)
No response