Requested entity was not found error when calling spreadsheets_values with Google Sheets API (PHP) - Hack The Tech - Latest News related to Computer and Technology

Hack The Tech - Latest News related to Computer and Technology

Get Daily Latest News related to Computer and Technology and hack the world.

Monday, May 31, 2021

Requested entity was not found error when calling spreadsheets_values with Google Sheets API (PHP)

I am using the Google Sheets API (PHP) with a service account. When running

spreadsheet_values->get($spreadsheetId, $sheet_name, ['majorDimension' => 'ROWS'])

I get a 404 error "Requested entity was not found". The spreadsheet ID is correct and the sheet in the drive has given the service account permissions. The weird thing is that this works on localhost, but has broken when moving to a web host (000webhostapp). Note that WordPress is being used with PHP version 7.2. The version of the Sheets API being used is v2.7.



source https://stackoverflow.com/questions/67766436/requested-entity-was-not-found-error-when-calling-spreadsheets-values-with-googl

No comments:

Post a Comment