Help needed: Integrate Launchdarkly with Convex Dev
I am following the tutorial here https://www.convex.dev/components/launchdarkly to setup Launchdarkly with Convex Dev.
I am at the step of setting up integration on LaunchDarkly Dashboard. I have filled the fields "name, environment, webhook url, component API token". Then I save the configuration. When I click the configuration form again to validate the configuration, I am presented with an empty form.
So I decide to fill it again. When I attempt to generate a new token (I closed the terminal and lost the previous one), I'm getting the error message
"A token already exists. Delete the existing token from the tokens table to generate a new one"
Convex
LaunchDarkly Feature Flags
Sync your LaunchDarkly feature flags with your Convex backend for use in your Convex functions.
11 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
If you go to your tables in the dashboard, you'll notice a dropdown above the tables list, it'll say "app". Pick the launch darkly component from that dropdown to see the component's own tables, you should be able to delete the token there (probably a record in a "tokens" table? not sure)
Thank you @erquhart I was able to delete and recreate a new token. Now in Launchdarkly, I setup a new integration. Then I click save, the form is immediately cleared. According to the tutorial document, if I open the integration from again, I should be able to click the "Validate connection" button. But when I open the form again (by clicking the link from the tutorial document), I am presented with an empty form integration and a disabled "Validate connection" button. Not sure if I'm missing something...
Also when I scroll the list of integrations on my LaunchDarkly Dashboard /Organisation/Settings page, I don't see a "convex" integration item.
I haven't actually tried the launch darkly integration, I'll need to set it up to get a sense of what's going on, but I can't do so at this red hot second. It really sounds like you're close
Heya! When i last set up the integration, i needed to first save it then re-open it to validate the connection.
Im not sure why it’s not showing up in the list for you when you scroll. Does it show up when you type “convex” in the search bar?
Once you save the integration, it should appear in the list and you can edit it to validate the connection. If it’s still not working, can you dm me the email associated with your launchdarkly account and ill reach out to their team for support?
Thanks for that info, I forwarded this problem to the LaunchDarkly team for support. We’ll likely hear back after the weekend.
For your privacy, I’ve deleted the last message containing an email address
Hi @noob saibot, I got in touch with the team at LaunchDarkly. They have requested a screenshot of the integrations page with Convex missing in the list. Would you be able to create a screenshot like that? On my account, Convex appears between "Confluence" and "Cortex" in the list
Hi @ari This is the screenshot of my launchdarkly page with the missing convex item:
Thanks, I forwarded that over to them. Hopefully we can get this sorted out for ya quickly!
Hiya, it should be fixed now. Could you try again and let me know?
Hi @ari the issue has been fixed thank you. Quick question: the setup I have done is for the development environment. If I want to setup integration for the production env, should I reuse the same "Component API Token"? as I cannot generate a second token.
Great question! Do you want multiple launchdarkly environment in one convex deployment, or do you want to hook up each of your Convex deployments to a different launchdarkly environment?
For the first option, you can follow these instructions to have separate components:
- https://github.com/get-convex/launchdarkly?tab=readme-ov-file#syncing-multiple-launchdarkly-environments-in-one-convex-app
For the second option, you can check out this section in the docs about hooking up production:
- https://github.com/get-convex/launchdarkly?tab=readme-ov-file#production