nithinmurali / pygsheets

Google Sheets Python API v4
https://pygsheets.readthedocs.io/en/latest
Other
1.5k stars 220 forks source link

Error on adding a row to the table #563

Open exactstat opened 1 year ago

exactstat commented 1 year ago

In an attempt to add the first row to the empty table.

 File "*******\venv\lib\site-packages\pygsheets\utils.py", line 214, in wrapper
    return func(*args, **kwargs)
  File "*******\venv\lib\site-packages\pygsheets\worksheet.py", line 1148, in append_table
    'tableRange': GridRange.create(response_json['tableRange'], self),
KeyError: 'tableRange'

and the response_json itself

{
  'spreadsheetId': '*******',
  'updates': {
    'spreadsheetId': '**********',
    'updatedRange': "'********'!A1:F1",
    'updatedRows': 1,
    'updatedColumns': 6,
    'updatedCells': 6
  }
}