When read/write from the google sheets, have this error:
gspread.exceptions.RequestError: (404, '404: b\'<!DOCTYPE html>
...
Sorry, unable to open the file at present.</p><p> Please check the address and try again.</p>
The code has been working for many years but it suddenly gets this error without any changes being made. The following is the code. I've created a new credential json file but it also does not work.
SCOPES = ['https://www.googleapis.com/auth/spreadsheets', "https://www.googleapis.com/auth/drive.file","https://www.googleapis.com/auth/drive"]
credentials = ServiceAccountCredentials.from_json_keyfile_name("credentialfile.json", SCOPES)
connection = gspread.authorize(credentials)
worksheet = connection.open(self.sheet).worksheet(tab)
Any suggestions?