gspread.exceptions. HTTPError: 500:
See original GitHub issueAnybody facing this error? How to catch this exception? and re-run the script?. One of the reasons for this exception, I guess, processing heavy data from Spreadsheets into Google servers and getting back from them.
Stack Trace:
Traceback (most recent call last):
File "range.py", line 57, in <module>
worksheet.insert_row(no_of_bugs_weekly, 2)
File "/Users/ssindhe/Downloads/gspread/gspread/models.py", line 603, in insert_column
newcell = self.cell(c, col + (index - 1))
File "/Users/ssindhe/Downloads/gspread/gspread/models.py", line 324, in cell
self._cell_addr(row, col))
File "/Users/ssindhe/Downloads/gspread/gspread/client.py", line 271, in get_cells_cell_id_feed
r = self.session.get(url)
File "/Users/ssindhe/Downloads/gspread/gspread/httpsession.py", line 79, in get
return self.request('GET', url, **kwargs)
File "/Users/ssindhe/Downloads/gspread/gspread/httpsession.py", line 75, in request
raise HTTPError("%s: %s" % (response.status, response.read()))
gspread.exceptions.HTTPError: 500:
<!DOCTYPE html><html lang="en" ><head><meta name="description" content="Web word processing, presentations and spreadsheets"><link rel="shortcut icon" href="//ssl.gstatic.com/docs/common/drive_favicon1.ico"><title>Google Drive Error</title><link href="//fonts.googleapis.com/css?family=Open+Sans:300" rel="stylesheet" type="text/css"><style>/* Copyright 2015 Google Inc. All Rights Reserved. */
.goog-inline-block{position:relative;display:-moz-inline-box;display:inline-block}* html .goog-inline-block{display:inline}*:first-child+html .goog-inline-block{display:inline}#drive-logo{color:#91959c;font-family:"Open Sans",Arial,sans-serif;font-size:27px;font-weight:300;position:absolute;text-shadow:0 1px 1px white;white-space:nowrap}#drive-logo img{padding:0 0.4em 0 0;position:relative;top:2px;vertical-align:middle}#drive-logo a{color:#91959c;text-decoration:none}#drive-logo span.goog-inline-block{margin-top:2px;vertical-align:top}</style><style type="text/css">body {background-color: #fff; font-family: Arial,sans-serif; font-size: 13px; margin: 0; padding: 0;}a, a:link, a:visited {color: #112ABB;}</style><style type="text/css">.errorMessage {font-size: 12pt; font-weight: bold; line-height: 150%;}</style></head><body><div style="margin: auto; max-width: 750px;"><div style="margin: 80px 40px 20px 40px; position:relative; "><div style="position: absolute; top: -80px;"><h1 id="drive-logo"><a href="/"><img src="//www.google.com/images/logos/google_logo_41.png" width="116" height="41" alt="Google logo" ><span class="goog-inline-block">Drive</span></a></h1></div><p style="padding-top: 15px">Google Docs encountered an error. Please try reloading this page, or coming back to it in a few minutes.</p><p>To learn more about the Google Docs editors, please visit our <a href="https://support.google.com/docs/?hl=en_US&p=error_help" target="_blank">help center</a>.</p><p><br><b>We're sorry for the inconvenience.</b><br><i>- The Google Docs Team</i></p></div></div></body></html>
Issue Analytics
- State:
- Created 8 years ago
- Comments:12
Top Results From Across the Web
gspread.exceptions.APIError error code 500 - Stack Overflow
gspread.exceptions.APIError error code 500 ... I am using the python gspread library to get information off of google sheets.
Read more >I am getting Internal Server Error 500, which fixes for a while if ...
A 500 does not mean "try something completely different", it means "go look at the logs to see exactly what exception was thrown,...
Read more >gspread api error in Python3 : r/learnpython - Reddit
gspread.exceptions.APIError: {'code': 500, 'message': 'Internal error encountered.', 'status': 'INTERNAL'} i am getting the above error in ...
Read more >Resolve errors | Google Drive
HTTP error codes and messages in the header. ... 500 Backend error; 502 Bad Gateway; 503 Service Unavailable; 504 Gateway Timeout. Was this...
Read more >Errors | Cloud APIs - Google Cloud
Status , while google-cloud-java will raise an Exception. ... 500, DATA_LOSS, Unrecoverable data loss or data corruption. The client should report the error ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think this is an error you get when your connection with Google spreadsheet is lost. Like a time out. You can only be so long (60 min or so) connected with Google. Otherwise you need to connect again. For me a reboot always work to get things work again. I’m looking now for a better solution, but since I saw so many suffer from this, I wanted to share this already
I fixed this in jupyter notebook by restarting the kernel and running all.