Skip to content
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

Error - #<NoMethodError: undefined method `empty?' for 200:Integer> #387

Open
jeantristan opened this issue Jan 5, 2021 · 0 comments
Open

Comments

@jeantristan
Copy link

I was using this fantastic gem during several months.
It just stop working. Now I have the following error:

Sending HTTP get https://www.googleapis.com/drive/v3/files/1g6rlRbR2bfZu8UH9GJ5gFWoUZqZRgLJCIYTEV0ffvWg?fields=%2A&supportsAllDrives=true
200
Caught error undefined method `empty?' for 200:Integer
Error - #<NoMethodError: undefined method `empty?' for 200:Integer>

Traceback (most recent call last):
        2: from (irb):7
        1: from (irb):8:in `rescue in irb_binding'
NoMethodError (undefined method `empty?' for 200:Integer)

To reproduce:

require "google_drive"
@session = GoogleDrive::Session.from_service_account_key("google_service_account_info.json")
 sheet_key = ENV["EXPORT_GSHEET_ALL_LOTS_ID"]
@ws = @session.spreadsheet_by_key(sheet_key).worksheets[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant