You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And Postman executes as I'd hope, giving the expected return from my deployed Google Script.
When I craft up a similar .rest file for REST Client VS Code extension, I get follow errors upon execution... either as native .rest or using the supported cURL method.
POST https://script.google.com/macros/s/{(GUID}}/exec
Content-Type: application/json
{
"message": "Hello World"
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm struggling to get the REST Client extension working with Google Scripts. Details of my adventure below.
Using the Postman app, I'm able to:
Postman exports cURL as;
And Postman executes as I'd hope, giving the expected return from my deployed Google Script.
When I craft up a similar .rest file for REST Client VS Code extension, I get follow errors upon execution... either as native .rest or using the supported cURL method.
Google Script returns:
And if I manually follow the location, google then returns.
In further testing, I have the following .mjs file executing successfully in node.js, and Google Script returns as expected without error.
Is this a limitation of the "REST Client" api extension, or have I simply got a malformed query?
Beta Was this translation helpful? Give feedback.
All reactions