Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

OAuth2 RefreshError while refreshing access token in Docker #1435

@Dave-JG

Description

@Dave-JG

Google Sheets and Drive API connections suddenly stopped working two days ago. No code or credentials have changed. OAuth2 token refreshes work fine locally. However, when running within Docker, with access to same credentials file and tokens, I receive the following error.

File "/google_sheets_connect.py", line 32, in
creds.refresh(Request())
File "/usr/local/lib/python3.7/site-packages/google/oauth2/credentials.py", line 344, in refresh
self._universe_domain
google.auth.exceptions.RefreshError: User credential refresh is only supported in the default googleapis.com universe domain, but the current universe domain is None. If you created the credential with an access token, it's likely that the provided token is expired now, please update your code with a valid token.

Metadata

Metadata

Labels

type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions