Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting 500 error consistently on Google Sheets API

Tags:

google-api

I am using the Google Sheets API and consistently getting the following error. I am only getting it for a specific sheet with a specific service key. My other credential is working just fine. Also the load relatively load from what I can tell. I'm not railing the API or anything.

{
  "error": {
    "code": 500,
    "message": "Internal error encountered.",
    "errors": [
      {
        "message": "Internal error encountered.",
        "domain": "global",
        "reason": "backendError"
      }
    ],
    "status": "INTERNAL"
  }
}
like image 206
Danny G Avatar asked May 03 '26 06:05

Danny G


2 Answers

This has to do with their internal timeout. If an operation that you are trying to complete is taking longer, it will bail. Until they fix this a solution may be to reduce the size of data to make the operation quicker. In my case, I update the spreadsheet in smaller chunks.

like image 154
Alexei Masterov Avatar answered May 07 '26 11:05

Alexei Masterov


I have found the culprit here. It looks like I had to remove two sheets with Pivot Tables on them referencing a sheet I was trying to query. Once I did that all is well now.

like image 26
Danny G Avatar answered May 07 '26 09:05

Danny G



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!