-
Notifications
You must be signed in to change notification settings - Fork 890
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
googleapiclient.errors.HttpError: <HttpError 400 when requesting https://www.googleapis.com/discovery/v1/apis/script/v1/rest returned "Request contains an invalid argument."> #83
Comments
So the error suggests something's wrong w/ the token.json (according to this: https://stackoverflow.com/questions/43260440/error-in-request-for-google-cloud-speech-api-request) that was generated, so it looks like google is generating that file incorrectly. Here's what mine looks like:
|
I was having the exact same issue, see here googleapis/google-api-python-client#628. You should be able to get it to work by changing:
to
|
Thanks! Looks like it works but the problem might be this isn't a long term solution since oauth2client is deprecating https://google-auth.readthedocs.io/en/latest/oauth2client-deprecation.html |
Update: It looks like this is where the error is occurring:
![image](https://user-images.githubusercontent.com/19336285/53278734-d9aa9780-36bf-11e9-9966-86fc783329a6.png)
Here's what it says about the build function:
![image](https://user-images.githubusercontent.com/19336285/53278879-f398aa00-36c0-11e9-8fa2-5204c2867852.png)
Original Post:
I'm not sure which part of the request is broken, I tried using the original request from the sample code but still has the same error. I also tried just using 1 scope, without parameter, different function name, quote the "123" in the request object. Still no luck. Any help is appreciated, thanks!
Using this script based on https://developers.google.com/apps-script/api/how-tos/execute & https://github.com/gsuitedevs/python-samples/blob/364cd15a3e8949048fd2731ec941dd57169ee2ba/apps_script/execute/execute.py#L16-L79
My script:
I'm getting this error:
![image](https://user-images.githubusercontent.com/19336285/53223133-3147f500-3625-11e9-8990-8d749c7f02ba.png)
Google app script function:
Public Google Sheet:
https://docs.google.com/spreadsheets/d/1Z4PAY3CCaRorn5LRdFQKn4-EcAHxwxHJsABzEgsSQk0/edit#gid=0
The text was updated successfully, but these errors were encountered: