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

CRITICAL list index out of range #10

Open
GAZ082 opened this issue Mar 26, 2020 · 0 comments
Open

CRITICAL list index out of range #10

GAZ082 opened this issue Mar 26, 2020 · 0 comments

Comments

@GAZ082
Copy link

GAZ082 commented Mar 26, 2020

Hi, after doing:

tap-google-sheets --config config.json --discover > catalog.json

I get the file parse INFO log and also a CRITICAL error that prevents from generating the catalog.json file:

CRITICAL list index out of range
Traceback (most recent call last):
  File "/home/sistemas/taps/bin/tap-google-sheets", line 11, in <module>
    load_entry_point('tap-google-sheets==1.0.1', 'console_scripts', 'tap-google-sheets')()
  File "/home/sistemas/taps/lib/python3.7/site-packages/singer_python-5.9.0-py3.7.egg/singer/utils.py", line 229, in wrapped
    return fnc(*args, **kwargs)
  File "/home/sistemas/taps/lib/python3.7/site-packages/tap_google_sheets-1.0.1-py3.7.egg/tap_google_sheets/__init__.py", line 49, in main
    do_discover(client, spreadsheet_id)
  File "/home/sistemas/taps/lib/python3.7/site-packages/tap_google_sheets-1.0.1-py3.7.egg/tap_google_sheets/__init__.py", line 26, in do_discover
    catalog = discover(client, spreadsheet_id)
  File "/home/sistemas/taps/lib/python3.7/site-packages/tap_google_sheets-1.0.1-py3.7.egg/tap_google_sheets/discover.py", line 6, in discover
    schemas, field_metadata = get_schemas(client, spreadsheet_id)
  File "/home/sistemas/taps/lib/python3.7/site-packages/tap_google_sheets-1.0.1-py3.7.egg/tap_google_sheets/schema.py", line 282, in get_schemas
    sheet_json_schema, columns = get_sheet_metadata(sheet, spreadsheet_id, client)
  File "/home/sistemas/taps/lib/python3.7/site-packages/tap_google_sheets-1.0.1-py3.7.egg/tap_google_sheets/schema.py", line 235, in get_sheet_metadata
    sheet_json_schema, columns = get_sheet_schema_columns(sheet_metadata)
  File "/home/sistemas/taps/lib/python3.7/site-packages/tap_google_sheets-1.0.1-py3.7.egg/tap_google_sheets/schema.py", line 35, in get_sheet_schema_columns
    first_values = row_data[1].get('values', [])
IndexError: list index out of range
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