Repository navigation
Take worldarray 0.10.2: a public gs:// bucket opens with an expired gcloud login - #197
Merged
Merged
Conversation
…cloud login worldarray 0.10.0 did not fall back to a gs:// bucket's public URL when the gcloud login could not be refreshed (tensorstore's HTTP 400 invalid_grant), so a public gs:// path raised on a machine with a stale login. 0.10.1 counts any failure to get a token as a refusal. The lock keeps tensorstore 0.1.85, which 0.10.1's fix needs.
davidackerman
marked this pull request as ready for review
November 13, 2026 18:36
… 0.1.86 too 0.10.1 told a failed token refresh by tensorstore's oauth2 source location, which 0.1.86 leaves out of its messages; 0.10.2 also matches the OAuth error code. The lock keeps tensorstore 0.1.85.
# Conflicts: # CHANGELOG.md
# Conflicts: # CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On a Mac whose gcloud login had expired,
cellmap_flow view -d precomputed://gs://neuroglancer-janelia-flyem-hemibrain/emdata/clahe_yz/jpegraisedUnknown [HTTP code 400] ... invalid_grant ... invalid_rapt. The bucket is public, so it should have opened without any login.worldarray reads a gs:// path with Google's default credentials first, and is meant to fall back to the bucket's public https URL when those are refused. tensorstore reports a token endpoint that answers 401 as
PERMISSION_DENIED, and the fallback worked for that. It reports a refresh that answers 400invalid_grant(an expired or revoked login) asUnknown, so 0.10.0 raised it instead.Changes here:
pyproject.toml:worldarray>=0.10.2,<1.pixi.lock: worldarray 0.10.0 → 0.10.2 in every environment and nothing else. tensorstore stays at 0.1.85.The worldarray session checked the PyPI install of 0.10.2 with tensorstore 0.1.86 in a clean venv: a gs:// open whose token refresh got 400
invalid_grantfell back to the public URL and read the data, and a private bucket raisedPERMISSION_DENIEDwith theinvalid_granterror as its cause. It had checked 0.10.1 with tensorstore 0.1.85 the same way.