#alex_webhooks-firebase

1 messages ยท Page 1 of 1 (latest)

sterile totemBOT
#

๐Ÿ‘‹ 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.

solid willow
#

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

bitter cypress
#

๐Ÿ‘‹ Hi, just getting caught up on a few other threads, i'll be with you very soon ๐Ÿ™‚

solid willow
#

thanks

bitter cypress
#

Do you have an example req_id for the creation of a Checkout Session?

solid willow
#

I think I dont have, in the sense that in the logs, I cant find any for checkout session

bitter cypress
#

could you share your account id?

solid willow
#

Here it is

#

acct_1Rg6qmLevqa65neE

sterile totemBOT
blazing umbra
#

alex_webhooks-firebase

#

okay taking over @solid willow sorry for the delay I was catching up on other threads

solid willow
#

Ok, dont worry

blazing umbra
#

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

solid willow
#

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

blazing umbra
#

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

solid willow
#

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

blazing umbra
#

Sure but you wrote the code entirely right? Since you said you use a vanilla integration

solid willow
#

No, I havent written any explicit code

blazing umbra
#

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)

solid willow
#

all the vanilla integration is the one the extension does for me

#

hmmm, ok

blazing umbra
solid willow
#

so I contact them in issues in their github?

blazing umbra
#

possibly. Sorry I don't know anything about that company myself, they just took over the extension

solid willow
#

Oh, ok, well, thanks for your time

#

have a nice day!