hubmapconsortium / hra-ui

HRA UIs Monorepo (includes HRA Portal, EUI, RUI, ASCT+B Reporter, and more)
MIT License
4 stars 2 forks source link

HRA Organ information is not generated when a user is not logged in (SenNet) #702

Open maxsibilla opened 1 month ago

maxsibilla commented 1 month ago

This can be reproduced by visiting any organ page on the SenNet Data Sharing Portal (e.g. https://data.sennetconsortium.org/organs/heart) while not logged in or in incognito mode. The default token that gets set is 55488bfad6fa6946e15209040938668e which is not valid for SenNet and prevents any public block information from being gathered. The default behavior when no token is passed should be to not set it at all.

image
bherr2 commented 1 month ago

The other token is an HRA-API session token, so ignore that. But I do see you are passing 'undefined' to the sennet ds-graph endpoint: image

Which causes an error. I believe that is the root of the issue. if you just replace undefined with the empty string and produce this url https://apps.humanatlas.io/api/ds-graph/sennet?token= it should work again.

maxsibilla commented 1 month ago

@bherr2 Thank you for catching that! Yes that seems to fix it