Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Apps Script: Deploy as web app and get url without 302 redirects

I have a test webhook setup in Stripe that posts to a google script that is deployed as a web app.

Google gives me the web app URL. That URL does one or more 302 redirects until it actually runs the script. This is incredibly annoying because the Stripe webhook is not following redirects.

How do I get the real URL for the web app and bypass these silly redirects?

Alternatively, how do I get Stripe to follow redirects?

like image 485
paulwal222 Avatar asked Oct 19 '25 03:10

paulwal222


1 Answers

I figured it out. It is actually running the script when the Stripe webhook calls the web app URL, and the redirect is just to display the result.

I hadn't updated the deployed web app version to the latest code, which is why I thought the script wasn't being run.

like image 93
paulwal222 Avatar answered Oct 21 '25 23:10

paulwal222