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
4 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!
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.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 🤝🏻
Nuking Convex won’t change it, would have to nuke Polar if that’s an option.