-
Notifications
You must be signed in to change notification settings - Fork 871
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
Invalid request (Google::Apis::ClientError) 404 #6103
Comments
we use '0.17.2'... |
Hi! We have the exact same thing, on 2021-08-11 it was working fine, but it stopped working on 2021-08-12. The results are the same, getting 404 with this error message: Google::Apis::ClientError: Invalid request/app/vendor/bundle/ruby/2.6.0/gems/google-api-client-0.21.2/lib/google/apis/core/http_command.rb:218:in `check_status' |
Exactly which call (which class/method) is failing? |
http_command.rb#excute_once
out system use old library with this(https://github.com/gimite/google-drive-ruby).
but current google-api-ruby-client handle a below-url.
i think is's a reason why it says 404. is that right? |
Sorry, I wanted to know which method in the spreadsheets client class you are calling directly (not which low-level method in the core library is being called). Also, are you using the google-api-ruby-client gem? That gem is deprecated and is not being updated, so it's possible it's trying to hit an old endpoint. Consider using the google-apis-sheets_v4 gem. According to the official documentation, the correct URLs are of the form If you are still getting 404s, file a bug with the sheets API team: go to https://developers.google.com/sheets/api/reference/rest and click the "send feedback" button and choose "product feedback". That will go to the bug form directly to the sheets team. Let them know the URL you are trying to hit. I don't think we can do much in these open source client libraries. |
i think this is a 404 reason that our system use spreadsheet api which is https://spreadsheets.google.com/feeds/worksheets/~. we are using old? wrong? url(https://spreadsheets.google.com/feeds/worksheets~). so i need to change url. but you mean you think different reason? |
i am going to post it later |
For us, updating the google_drive gem to 3.0.7, updating service accounts, and allowing them to access the G-suite including the drive solved the issue. https://developers.google.com/identity/protocols/oauth2/service-account#creatinganaccount |
We're hitting the same issue and we're unable to update the google_drive gem because of dependency hell in a large project. We can't use the raw api library out of the box, because of more dependency hell
Does anyone know why Google chose to mess with everyone without warning? |
It's possible that the
It's also possible that something else is going on. @bonyii said they updated their service accounts and auth setup, so I suppose it's also possible something changed in the auth setup.
|
This likely broke for all of us consumers because of Google's "deprecation" (aka removal) of the v3 API: https://cloud.google.com/blog/products/g-suite/migrate-your-apps-use-latest-sheets-api Did anyone else get any notifications from Google about this? I'm trying to figure out if there's any channels we should have caught this on. |
@yoshi-automation It appears to be authentication related. Hence for both read (@shiratsu ) and write (others) this error is observed. A clearer error message, probably related to credentials refresh, etc., and a more appropriate error code, from Google would be appreciated. |
@yoshi-automation also note that @bonyii made authentication-related changes, which may have solved the problem, irrespective of gem changes, which are less germane. |
😒 |
hi.
we are using this api for getting spreadsheet datas.
Until 2 days ago
we could get data from spreadsheet by using this api
but since yesterday i can't.
then to investigate this problem,
i put some debug log to http_command.rb#check_status at my local.
it says
what happened?
api limitation?
The text was updated successfully, but these errors were encountered: