#ozgefen_webhooks

1 messages ยท Page 1 of 1 (latest)

fallow turretBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

heavy heron
ember relic
#

to resolve this, you should ensure that the URL added in your webhook settings is the final URL where events will be delivered, after any redirects

heavy heron
#

I read that. I think the link that Apps Script gives me redirects at the server level to another one...

ember relic
#

yeah that makes sense, thought I'm not sure if there's much that can be done to resolve that from the Stripe side

heavy heron
#

The idea is for the code to work and my business to move forward. Stripe benefits from this. The code performs the automations perfectly, it's just a simple display error.

#

We found the URL to which the Apps Script server redirects and entered it, but now it's giving us another error. How can we resolve this?

ember relic
#

I'm seeing a few other reports of users who had this same problem with App Script, but I don't think it's possible for Stripe to resolve his from our side because our webhooks system requires a 200 response code to treat the webhook delivery as successful

so the fact that the server is (correctly) responding with 302 is what breaks this process

#

bear with me for just a few more minutes, checking out some possible options ๐Ÿ™‚

heavy heron
#

ok ๐Ÿ™‚

ember relic
#

ok I'm afraid it's not possible for App Script + Stripe to work successfully for webhooks

since App Script always performs a redirect when the URL is called (which results in a 302 response), and Stripe treats a 302 response as a failure, you'd need to either (a) use another webhook provider who doesn't need to perform a redirect, or (b) use another payment service that can make requests to App Script and not treat the redirect as a failure

#

this isn't something that we're able to alter within our system

heavy heron
#

Why can't it be resolved if Stripe responds to the URL from Apps Script? The proof is that all the functions in the code are running.

#

I kept trying to use a proxy with another platform to connect Apps Script. Yes, it fixes error 302, but the code no longer works that way.

#

I don't mind the error since everything works perfectly through Apps Script (emails are sent, invoices are generated, etc.). It's just that I received an email from you saying that if I don't fix the error, my webhook will be disabled. The only way I can implement automations for my business is through Apps Script (I struggled a lot with AI to write the code and I succeeded). Could you at least not disable my webhook, since everything works perfectly?

ember relic
#

yeah I can understand why this seems frustrating since on your side, the actions are all working correctly

#

but the difficulty is that Stripe needs to be aware when webhooks are delivered successfully, and the way our system knows that is with a 200 response code - anything else is considered a failure, which leads to webhook retries and ultimately disabling the endpoint

https://docs.stripe.com/webhooks#fix-http-status-codes

fallow turretBOT
heavy heron
#

I can provide all the necessary evidence that Stripe successfully delivers my webhook...

#

Can I provide Stripe with the necessary evidence showing that Stripe is successfully delivering to my Apps Script webhook?

naive viper
#

Hi there, taking over for @ember relic has they had to step away

heavy heron
#

Please, offer me a solution, since the delivery is successful, proving that all the functions in my code are working.

naive viper
#

I've never heard of Stripe making an exception to deleting webhooks for failures, but you can open a case with https://support.stripe.com/?contact=true and explain your situation there with your evidence. I can't guarantee someone can help with that though, so it would be prudent to explore the alternatives that @ember relic suggested

heavy heron
#

I clicked on the link. How can I open a case? I can't find it.

naive viper
#

You can ask to open a case in the Assistant panel that is open on the right