question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Google API error - [404] Requested entity was not found.

See original GitHub issue

I’m deploying a project @ Vercel using Next.js to read this sheets pages and load tables with contents. It works locally, where I’ve dealt with all values using env variables (spreadsheets IDs, service account email and private key), but not remotely with the same env vars set.

It returns this message in the log:

16:41:38.033 | Error: Google API error - [404] Requested entity was not found.
-- | --
16:41:38.033 | at createError (/vercel/path0/node_modules/google-spreadsheet/node_modules/axios/lib/core/createError.js:16:15)
16:41:38.033 | at settle (/vercel/path0/node_modules/google-spreadsheet/node_modules/axios/lib/core/settle.js:17:12)
16:41:38.034 | at IncomingMessage.handleStreamEnd  (/vercel/path0/node_modules/google-spreadsheet/node_modules/axios/lib/adapters/http.js:269:11)
16:41:38.034 | at IncomingMessage.emit (events.js:412:35)
16:41:38.034 | at endReadableNT (internal/streams/readable.js:1334:12)
16:41:38.034 | at processTicksAndRejections (internal/process/task_queues.js:82:21) {

My IDs are ok. Do I need a secondary private key to run it remotely?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
theoephraimcommented, Nov 11, 2021

Are you sure your IDs are ok? Can you recreate the same error locally by messing up the doc id?

0reactions
hasnainCNcommented, Aug 16, 2022

getting the same issue although i have added the keys correctly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting "Requested entity was not found" when fetching ...
When the error message of Requested entity was not found. occurs, the following reasons can be considered. The Spreadsheet of the spreadsheet ID...
Read more >
Gmail API: How to fix “Requested entity was not found” problem
Solution · Get message and thread ids using the messages.list() method · Try to get the message using the message id · If...
Read more >
"Requested entity was not found" bulk upload error message
If there are, and the message you've received is 'Requested entity was not found' this tells us that the location ID that you...
Read more >
Gmail API: "Requested entity was not found." : r/gsuite - Reddit
Hey there, I'm trying to update our user's Gmail signature but getting the following error message:raise HttpError(resp, content, ...
Read more >
NOT_FOUND error - Google Groups
<stderr>: Caused by: com.google.api.client.http.HttpResponseException: 404 Not Found { "error": { "code": 404, "message": "Requested entity was not found.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found