The built-in REST API seems to have had a breaking change today.
In our use case this has affected the POST requests to Google Apps scripts web apps.
POST requests from a REST API block to a Google Apps Script web app (https://script.google.com/macros/s/.../exec) consistently fail with 405 Method Not Allowed. The same request succeeds from Postman, curl with -L, browser fetch()…
This suggests the REST API block is not handling the 302 redirect that Apps Script uses correctly.
- How to reproduce:
Deploy any trivial Apps Script as a web app with adoPost(e)handler that returnsContentService.createTextOutput("ok"). Set "Execute as: Me", "Who has access: Anyone". - In a Retool, add a REST API block: method POST, the
/execURL,Content-Type: application/json, any JSON body. - Run the block.
- Response is
405 Method Not Allowed,Allow: HEAD, GET, content-typetext/html. - Make the same call from Postman with identical headers/body. Result: 200 OK