gspreadライブラリを用いてスプレッドシートに書き込みをしている最中、以下のようなエラーが発生しました。
gspread.exceptions.APIError: { "error": { "code": 401, "message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.", "status": "UNAUTHENTICATED" }
前後で動作の変化はなく、同じような処理を繰り返している最中の1つでこのようなエラーが生じました。
このようなエラーは何故生じるのでしょうか。
あなたの回答
tips
プレビュー