-
Notifications
You must be signed in to change notification settings - Fork 66
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
Confusing error message with no keys #165
Comments
Hi @jb-reefer, Thank you for the suggestion. Prior to getting the The other part which is probably causing confusion is a terminology discrepancy:
Although the name is different, they're referring to the same thing; both of these parameters should be populated with what app.launchdarkly.com and our documentation refer to as the "client-side ID". The error messages refer to them as "environment" as that's what the JavaScript SDK calls it during initialization. To make this more clear, we're taking your suggestion and updating these two messages to refer to both environment and client-side ID. This will be included in the next version of our JS and React SDKs (likely 2.12.5). Cheers, |
Fixed in the 2.12.5 release. |
Describe the bug
When client side keys are not set, we get the following error message from the React SDK:
This implies that the environment hasn't been configured in LD, when it has - we just don't have any keys at all!
To reproduce
Instantiate an
withLDProvider
withclientSideID: undefined
Expected behavior
A more useful error message, like "clientSideID not provided"
Logs
clientSideID: LAUNCHDARKLY_CLIENT_ID,
SDK version
2.12.0 of launchdarkly-js-client-sdk
Language version, developer tools
Node 10
OS/platform
We see the above on all modern browsers
The text was updated successfully, but these errors were encountered: