BigQueryReadClient::ReadRows fails with `UNKNOWN: Error occurred when fetching oauth2 token` after CreateReadSession succeeds
@scotthart is already working on this.
Since Aug 24, 2026.
Assessment
This issue has not been assessed yet.
Description
Client google-cloud-cpp v2.22.0
What Happened
Error Source: RUNTIME
Error Code: INVALID_STATE
Reason: BigQuery ReadRows failed for stream projects/rising-woods-374602/locations/us/sessions/CAISDG80QTJWdmc5UnpMSRoCamMaAm55/streams/CM8RGgJqYxoCbnkoAg: UNKNOWN: Error occurred when fetching oauth2 token. (rows delivered by this data source before the failure: 0)
I'm not filing this as a bug yet. I want to understand the failure mode.
- Under what conditions does this occur?
- Is this a client side or service side issue ? how do I confirm which one it is?
Is UNKNOWN error type retried by the default BigQueryReadConnection retry policy? If a transient token fetch failure lands as UNKNOWN, it looks like it would bypass retry and kill the read outright. Is that expected, and is there a supported way to make token-fetch failures retryable ?
- Dominant language
- C++
- Stars
- 659
- Forks
- 463
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 89
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from googleapis/google-cloud-cpp
-
type: feature request
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
googleapis/google-cloud-cpp#16193 ·
-
api: storage type: cleanup
Difficulty 3/5 1-2 days Newbie friendliness 48/100
googleapis/google-cloud-cpp#16413 ·
-
api: storage type: cleanup
Difficulty 3/5 1-2 days Newbie friendliness 68/100
googleapis/google-cloud-cpp#16404 ·
-
cpp: generator type: cleanup
Difficulty 3/5 1-2 days Newbie friendliness 68/100
googleapis/google-cloud-cpp#16394 ·
-
type: cleanup
Difficulty 3/5 1-2 days Newbie friendliness 55/100
googleapis/google-cloud-cpp#16304 ·
All issues in googleapis/google-cloud-cpp
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100