-
Notifications
You must be signed in to change notification settings - Fork 495
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
Malformatted url responses by SWORD API #4586
Comments
@chStaiger thanks for opening this issue! As I mentioned at IQSS/dataverse-client-python#46 (comment) this is due to the SWORD API having "https" hard coded and how it sometimes puts in a port when it shouldn't: https://github.com/IQSS/dataverse/blob/v4.8.6/src/main/java/edu/harvard/iq/dataverse/api/datadeposit/UrlManager.java#L185 The workaround for now is to use https://demo.dataverse.org for testing APIs or to install a test server running https and having the
Sorry for the inconvenience! |
@chStaiger is the workaround I described above enough for you or are you still interested in a fix? |
The workaround works and I also added some extra lines in the python API to be sure that if Dataverse is not configured that way, that the python api calls are formed correctly. |
@chStaiger ok. At some point we should remove the hard-coded "https" but I'm glad you figured out a workaround! |
I just mentioned this at #6296 (comment) |
I installed a dataverse testserver and using port 8080 for HTTP requests as suggested in the install guide. I observe some strange behaviour when using the FQDN or IP address for posting requests for datasets:
When I am using 'localhost' to list a dataset the request answer is as expected:
However, when using the ip address, the answer looks like this:
For some reasons the API doubles the port.
The text was updated successfully, but these errors were encountered: