Trying to use Execution API for one of my project with devMode: true
, but getting the following error. But it works flawlessly when I make devMode: false
.
NOTE: I am owner and using the API from same account (so it should work ideally)
{
"error": {
"code": 404,
"message": "Requested entity was not found.",
"status": "NOT_FOUND"
}
}
I had also experienced the same situation. So can you confirm the following points again?
https://www.googleapis.com/auth/drive
, https://www.googleapis.com/auth/drive.scripts
and https://www.googleapis.com/auth/script.external_request
.After I confirmed above again, I always test using a following curl command. When you use this curl command, please input your access token, function name and script ID.
curl -X POST -L \
-H "Authorization: Bearer ### access token ###" \
-H "Content-Type: application/json" \
-d "{function: '### function name ###',devMode: true}" \
"https://script.googleapis.com/v1/scripts/### script ID ###:run"
In my environment, the error in your question was solved. I don't know whether these can solve your problem. If this was not useful for you, I'm sorry.