Skip to content

Take worldarray 0.10.2: a public gs:// bucket opens with an expired gcloud login - #197

Merged
davidackerman merged 4 commits into
mainfrom
worldarray-0.10.1
Nov 13, 2026
Merged

davidackerman merged 4 commits into
mainfrom
worldarray-0.10.1

Conversation

@davidackerman

@davidackerman davidackerman commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

On a Mac whose gcloud login had expired, cellmap_flow view -d precomputed://gs://neuroglancer-janelia-flyem-hemibrain/emdata/clahe_yz/jpeg raised Unknown [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 400 invalid_grant (an expired or revoked login) as Unknown, 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_grant fell back to the public URL and read the data, and a private bucket raised PERMISSION_DENIED with the invalid_grant error as its cause. It had checked 0.10.1 with tensorstore 0.1.85 the same way.

…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
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.
@davidackerman davidackerman changed the title Take worldarray 0.10.1: a public gs:// bucket opens with an expired gcloud login Take worldarray 0.10.2: a public gs:// bucket opens with an expired gcloud login Nov 13, 2026
@davidackerman
davidackerman merged commit 4d85d89 into main Nov 13, 2026
7 checks passed
@davidackerman
davidackerman deleted the worldarray-0.10.1 branch November 13, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant