#alex_webhooks-firebase
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1402382602005905519
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Ok, so I will add more context
Im using firebase auth system, its currently linked to Stripe through Stripe extention
But when my test customers do a purchase, its always as guest
When I check the logs in the cloud functions, it says
that handlewebhook failed due to user not found, altough the user sync indeed works
furthermore, I suspect this is related with another problem, when I go to my firestore database, my users never have a checkout_session, when they should
and finally, in the webhook events, the http response always indicate that the webhook handler failed
I think that is all
๐ Hi, just getting caught up on a few other threads, i'll be with you very soon ๐
thanks
Do you have an example req_id for the creation of a Checkout Session?
I think I dont have, in the sense that in the logs, I cant find any for checkout session
could you share your account id?
alex_webhooks-firebase
okay taking over @solid willow sorry for the delay I was catching up on other threads
Ok, dont worry
Okay so there's a lot of words here. But you use Firebase right? We don't know anything about that extension on this server as it's built/owned by a 3rd-party nowadays
Are you writing the code end to end? I see you shared an account id but I'm confused what exact part of your code you wrote is failing
Ok
Ehhh, Im using firebase for mainly user Auth. Alongside im using the stripe extension on firebase, this is so I can sync the users, the products, the checkout sessions, etc etc
Im using just the most plain vanilla integration
perfect that helps
Okay so you get some kind of request/event and then try to do something with our API but something is failing?
that's a lot of "something" but we can fill in the blanks
the main problem is that I am not able to see in the firebase database the checkout sessions, and when I go to see the webhook events in stripe the checkout.session.completed always fails, with the http response of: Response
HTTP status code
200
{
"error": "Webhook handler failed. View function logs in Firebase.",
As to why this is happening, I dont know
Sure but you wrote the code entirely right? Since you said you use a vanilla integration
No, I havent written any explicit code
Maybe you meant the opposite and you really wrote none of the code for this and let the extension do it all for you?
If so you need to talk to the owners of that extension (it's not us/Stripe)
https://github.com/invertase/stripe-firebase-extensions it's owned by that 3rd-party called Invertase
so I contact them in issues in their github?
possibly. Sorry I don't know anything about that company myself, they just took over the extension