You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calculating md5sum.
Validating file.
Submitting metadata.
Submission failed: 401 Unauthorized
{"@type": ["HTTPUnauthorized", "Error"], "status": "error", "code": 401, "title": "Unauthorized", "description": "This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required."}
Traceback (most recent call last):
File "submit_file.py", line 154, in <module>
r.raise_for_status()
File "/opt/anaconda3/lib/python3.7/site-packages/requests/models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://localhost:6543/file
In general when posting/patching/getting anything that requires authentication you should add an access key to a user's profile. Not sure snovault looks exactly the same but on portal it looks like this (I deleted this key):
Then you can use that access key and secret access key to gain the same permissions as the user. In Python you can pass these keys to requests.
Hello, I have snovault running on an ec2 vm on localhost:6543
I am attempting to execute https://github.com/ENCODE-DCC/snovault/blob/dev/examples/submit_file.py to store metadata for an example fastq. I get an authentication error:
I am assuming the issue is here https://github.com/ENCODE-DCC/snovault/blob/dev/examples/submit_file.py#L14 (encoded_access_key and encoded_secret_access_key). How do I determine what goes into these fields? My AWS keys are not working.
Thank you!
The text was updated successfully, but these errors were encountered: