Open jmurugan-fzj opened 7 months ago
@skasberger If you could provide me the access, I can also create the pull request immediately, Thanks
@jmurugan-fzj hi! Thanks for your interest in contributing! I'm confused, though. You could create a fork and make your pull request from there, right? Maybe I'm missing something. 🤔
@pdurbin Thanks for the quick response, I have done as suggested and created a PR too: fix(sword-api): get_service_document throws error due to auth-failure, Please take a look and let me know; I am not sure if I can assign any reviewers or change any properties of the PR, just kept it as such!
Steps to reproduce:
Install latest version of pydataverse![image](https://github.com/gdcc/pyDataverse/assets/141253011/20f96805-d54d-49c8-b0c4-a60cb340a709)
Create an instance of SwordApi and try to get the service document
API fails with the below given error![Screenshot from 2023-11-15 11-35-14](https://github.com/gdcc/pyDataverse/assets/141253011/eaa82f65-3781-476c-9f46-1f004ae32c6f)
Additional info:
get_request method within ../pyDataverse/api.py sets api_token in params["key"] which is the reason for the error, see the snippet below from the code base
Instead this should be replaced with basic authentication as given below