Skip to content

add verbose error output#1

Closed
iiegn wants to merge 1 commit into
ufal:mainfrom
commul:main
Closed

add verbose error output#1
iiegn wants to merge 1 commit into
ufal:mainfrom
commul:main

Conversation

@iiegn

@iiegn iiegn commented Jul 7, 2025

Copy link
Copy Markdown

Be more helpful in case of errors, e.g. an error 500 (because of an extra '/' should not be misread as an "ConnectionError: Cannot authenticate to dspace!"). Output r.url, r.status_code, r.text:

ERROR: Requestes url:https://HOST/repository/server/api//authn/status; status code:500; text:{"timestamp"
:"2025-07-07T08:53:24.119+00:00","status":500,"error":"Internal Server Error","message":"The request was rejected because the URL contained a potentiall
y malicious String \"//\"","path":"/repository/server/api//authn/status"}

Be more helpful in case of errors, e.g. an error 500 (because of an extra '/' should not be misread as an "ConnectionError: Cannot authenticate to dspace!"). Output `r.url, r.status_code, r.text`:
```
ERROR: Requestes url:https://HOST/repository/server/api//authn/status; status code:500; text:{"timestamp"
:"2025-07-07T08:53:24.119+00:00","status":500,"error":"Internal Server Error","message":"The request was rejected because the URL contained a potentiall
y malicious String \"//\"","path":"/repository/server/api//authn/status"}
```
@iiegn iiegn closed this Jul 7, 2025
@iiegn

iiegn commented Jul 7, 2025

Copy link
Copy Markdown
Author

This PR has been superseded by #2 (which now has its own branch - something I should have done here already...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant