Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some PyHandle exceptions are not handled gracefully #60

Open
tommydeboer opened this issue Feb 23, 2022 · 0 comments
Open

Some PyHandle exceptions are not handled gracefully #60

tommydeboer opened this issue Feb 23, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@tommydeboer
Copy link
Collaborator

For example, when trying to do a reverse lookup without valid credentials:

pyhandle.handleexceptions.ReverseLookupException: Error during Reverse Lookup: Authentication failed. You need to specify a username and password to search.
	Query: ?URL=https%3A//directory.bbmri-eric.eu/%23/biobank/bbmri-eric%3AID%3APL_A1P0T
	URL: https://epic-pid.storage.surfsara.nl:8001/hrls/handles?URL=https%3A//directory.bbmri-eric.eu/%23/biobank/bbmri-eric%3AID%3APL_A1P0T
	HTTP Status Code: 401
	Response: b'<html>\n<head>\n<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>\n<title>Error 401 Unauthorized</title>\n</head>\n<body><h2>HTTP ERROR 401</h2>\n<p>Problem accessing /hrls/handles. Reason:\n<pre>    Unauthorized</pre></p>\n</body>\n</html>\n'
@tommydeboer tommydeboer added the bug Something isn't working label Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant