Groups
Groups
Sign in
Groups
Groups
Google Apps Script Community
Conversations
Labels
About
Send feedback
Help
Cannot use UrlFetchApp in Execution API script
342 views
Skip to first unread message
Tom Doan
unread,
Mar 15, 2024, 3:47:34 AM
3/15/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Apps Script Community
I have two scripts:
A. deployed as Web App
B. deployed as Execution API
In script B, I'm trying to use
UrlFetchApp.fetch()
to request something from script A, but I get this error in the response:
{
"done": true,
"response": {
"@type": "
type.googleapis.com/google.apps.script.v1.ExecutionResponse
",
"result": {
"error": "\"You do not have permission to call UrlFetchApp.fetch. Required permissions:
https://www.googleapis.com/auth/script.external_request\
""
}
}
}
Script B appscript.json:
{
"exceptionLogging"
:
"STACKDRIVER"
,
"runtimeVersion"
:
"V8"
,
"executionApi"
: {
"access"
:
"ANYONE"
},
"oauthScopes"
: [
"
https://www.googleapis.com/auth/script.external_request
"
],
"urlFetchWhitelist"
: [
"
https://script.google.com/
"
]
}
Are Execution API scripts not allowed to use
UrlFetchApp.fetch()
or am I doing something wrong?
Andrew Apell
unread,
Apr 22, 2024, 2:10:58 PM
4/22/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Apps Script Community
This looks like an OAuth issue. You might need to have your project verified.
Reply all
Reply to author
Forward
0 new messages