---------------------------------------------------------------------------
UnauthorizedError Traceback (most recent call last)
<ipython-input-1-59d0be038625> in <module>()
4 token = '4d0634d3-74d5-4770-8088-1971847ac75e' # Generated at /account/apitoken
5
----> 6 connection = Connection(host, token)
/Users/josephwalsh/git-projects/methods/src/dataverse/dataverse/connection.py in __init__(self, host, token)
21 self._service_document = None
22
---> 23 self.get_service_document()
24
25 @property
/Users/josephwalsh/git-projects/methods/src/dataverse/dataverse/connection.py in get_service_document(self, refresh)
34
35 if resp.status_code == 403:
---> 36 raise exceptions.UnauthorizedError('The credentials provided are invalid.')
37 elif resp.status_code != 200:
38 raise exceptions.ConnectionError('Could not connect to the Dataverse')
UnauthorizedError: The credentials provided are invalid.