Not possible to read from public Azure blobs without authentication
M-Izadmehr opened this issue ยท 1 comments
M-Izadmehr commented
It's such a cool project, great work ๐
While trying to run it, I noticed that in neuron-viewer/python/server.py file, blobfile
is used to get the JSON from azure.
However, if you are not logged in to Azure, it will throw:
File "/opt/homebrew/lib/python3.10/site-packages/blobfile/_azure.py", line 797, in _get_access_token
raise Error(msg)
blobfile._common.Error: Could not find any credentials that grant access to storage account: 'openaipublic' and container: 'neuron-explainer'
Access Failure: message=Could not access container, request=<Request method=GET url=https://openaipublic.blob.core.windows.net/neuron-explainer params={'restype': 'container', 'comp': 'list', 'maxresults': '1'}>, status=404, error=ResourceNotFound, error_description=The specified resource does not exist.
RequestId:ea50e029-201e-00bf-04d4-82eb6a000000
It seems to be related to this issue blobfile/blobfile#118, and you have to login to azure to use this repository. If created a small PR to solve this issue in #2
WuTheFWasThat commented
thanks for your PR!