lucid
lucid2d ago

polar product not found

Im getting a 500 error: Uncaught Error: Uncaught Error: Product not found: <ID> I've followed the https://www.convex.dev/components/polar docs step by step
Convex
Polar
Add subscriptions and billing to your Convex app with Polar.
4 Replies
Convex Bot
Convex Bot2d ago
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!
erquhart
erquhart14h ago
Guessing you have products in Polar that existed before you set up the Polar component. The component still needs a method for backfilling products. Hmm actually it should at least upsert in these cases. I'll add that. Nah, I remember why I didn't do this initially, it creates a state where things can slowly triggle in implicitly, but all of your read methods are still wrong, eg., getCurrentSubscription would still show no subscription if the subscription existed before the component. It needs a proper backfill approach. Will look into this.
lucid
lucidOP11h ago
thanks very much for the update man, ill try nuke my convex project and worst case i’ll resort to doing polar syncing in a nextjs webhook with fetchqueries for the time being, let me know if theres any updates from your end with this 🤝🏻
erquhart
erquhart10h ago
Nuking Convex won’t change it, would have to nuke Polar if that’s an option.

Did you find this page helpful?