Skip to content

Conversation

@iiegn
Copy link

@iiegn iiegn commented Jul 7, 2025

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 potentially 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 mentioned this pull request Jul 7, 2025
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