Skip to content

Bug: Brainmaps API requests result in error code 401 #1079

Description

@amotta

Starting today, I can no longer view data via the Google Brain Maps API on https://neuroglancer-demo.appspot.com. As of now, the deployed version is: a345705

Specifically, when adding a raw layer from a brainmaps:// source:

  1. Neuroglancer shows the "Request login." button.
  2. The Safari JavaScript console shows: "[Error] Blocked a frame with origin "https://neuroglancer-demo.appspot.com" from accessing a frame with origin "https://accounts.google.com". Protocols, domains, and ports must match."
  3. After pressing the "Request login" button, the same dialog and button is shown again. Steps 1--3 can be repeated multiple times.
  4. The UI and JavaScript console show: "[Error] Failed to load resource: the server responded with a status of 401 () (meshes, line 0)" for the resource "https://brainmaps.googleapis.com/v1beta2/objects/OBJECT_ID_OF_RAW_LAYER/meshes".

I find it surprising that Neuroglancer is trying to get the /meshes endpoint for a raw layer. However, the authentication issue is presumably due to the error in step 2.

Actually, the authentication seems to work. In the "new layer" dialog, after typing "brainmaps://", a "Request login" button is shown. Pressing this button then produces the list of projects and datasets.

Additional context:

  • The problem phenotype can be reproduced in Google Chrome, but without an error message equivalent to step 2.
  • Viewing raw layers still worked around 24 hours ago.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions