You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create an instance of SwordApi and try to get the service document
api = SwordApi("https://demo.dataverse.org/", api_token="give_a_valid_token")
test1 = api.get_service_document()
API fails with the below given error
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
@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. 🤔
Steps to reproduce:
Install latest version of pydataverse
![image](https://private-user-images.githubusercontent.com/141253011/283136759-20f96805-d54d-49c8-b0c4-a60cb340a709.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU2NDkxOTksIm5iZiI6MTcyNTY0ODg5OSwicGF0aCI6Ii8xNDEyNTMwMTEvMjgzMTM2NzU5LTIwZjk2ODA1LWQ1NGQtNDljOC1iMGM0LWE2MGNiMzQwYTcwOS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwNlQxODU0NTlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04YjA4YjljZDRlMTI2ZTJiYmYxMzY4Y2NmMTQ2MjJjNGY5MWNhMmQxMTgxMGJhMWYxMTI3MzNkNmIwNDI3MmYyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.ez-goXueqd1NHGLL4lRLXhApaCEKzvM4F__undXaz94)
Create an instance of SwordApi and try to get the service document
Additional info:
The text was updated successfully, but these errors were encountered: