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
Traceback (most recent call last):
File "dvn_client.py", line 51, in main
cert=DEFAULT_CERT)
File "/Volumes/Raptor/tmp/swordpoc/dvn_client/src/connection.py", line 29, in __init__
self._connect()
File "/Volumes/Raptor/tmp/swordpoc/dvn_client/src/connection.py", line 37, in _connect
self.serviceDocument = self.swordConnection.get_service_document()
File "/Volumes/Raptor/miniconda3/envs/dataverse/lib/python2.7/site-packages/sword2-0.1-py2.7.egg/sword2/connection.py", line 391, in get_service_document
resp, content = self.h.request(self.sd_iri, "GET", headers=headers)
File "/Volumes/Raptor/miniconda3/envs/dataverse/lib/python2.7/site-packages/sword2-0.1-py2.7.egg/sword2/http_layer.py", line 73, in request
resp, content = self.h.request(uri, method, headers=headers, body=payload)
File "/Volumes/Raptor/miniconda3/envs/dataverse/lib/python2.7/site-packages/httplib2/__init__.py", line 1441, in request
(scheme, authority, request_uri, defrag_uri) = urlnorm(uri)
File "/Volumes/Raptor/miniconda3/envs/dataverse/lib/python2.7/site-packages/httplib2/__init__.py", line 218, in urlnorm
raise RelativeURIError("Only absolute URIs are allowed. uri = %s" % uri)
RelativeURIError: Only absolute URIs are allowed. uri = https:///dvn/api/data-deposit/v1/swordv2/service-document
Next, I tried setting:
DEFAULT_HOST = "dvn.iq.harvard.edu"
but I then get a 403: Forbidden error:
Traceback (most recent call last):
File "dvn_client.py", line 51, in main
cert=DEFAULT_CERT)
File "/Volumes/Raptor/tmp/swordpoc/dvn_client/src/connection.py", line 29, in __init__
self._connect()
File "/Volumes/Raptor/tmp/swordpoc/dvn_client/src/connection.py", line 37, in _connect
self.serviceDocument = self.swordConnection.get_service_document()
File "/Volumes/Raptor/miniconda3/envs/dataverse/lib/python2.7/site-packages/sword2-0.1-py2.7.egg/sword2/connection.py", line 391, in get_service_document
resp, content = self.h.request(self.sd_iri, "GET", headers=headers)
File "/Volumes/Raptor/miniconda3/envs/dataverse/lib/python2.7/site-packages/sword2-0.1-py2.7.egg/sword2/http_layer.py", line 73, in request
resp, content = self.h.request(uri, method, headers=headers, body=payload)
File "/Volumes/Raptor/miniconda3/envs/dataverse/lib/python2.7/site-packages/httplib2/__init__.py", line 1593, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/Volumes/Raptor/miniconda3/envs/dataverse/lib/python2.7/site-packages/httplib2/__init__.py", line 1335, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/Volumes/Raptor/miniconda3/envs/dataverse/lib/python2.7/site-packages/httplib2/__init__.py", line 1257, in _conn_request
conn.connect()
File "/Volumes/Raptor/miniconda3/envs/dataverse/lib/python2.7/site-packages/httplib2/__init__.py", line 1018, in connect
sock.connect((self.host, self.port))
File "/Volumes/Raptor/miniconda3/envs/dataverse/lib/python2.7/site-packages/httplib2/socks.py", line 424, in connect
self.__negotiatehttp(destpair[0], destpair[1])
File "/Volumes/Raptor/miniconda3/envs/dataverse/lib/python2.7/site-packages/httplib2/socks.py", line 390, in __negotiatehttp
raise HTTPError((statuscode, statusline[2]))
HTTPError: (403, 'Forbidden')
Finally, I tried putting in my username/password for the dataverse, but the error persists. What am I doing wrong?
The text was updated successfully, but these errors were encountered:
I tried running the example provided in the README for the Python code. I created a new file with:
then ran:
but got:
Next, I tried setting:
but I then get a
403: Forbidden
error:Finally, I tried putting in my username/password for the dataverse, but the error persists. What am I doing wrong?
The text was updated successfully, but these errors were encountered: