Skip to content
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

hs.createReferencedFile() throws out an error occasionally #91

Open
zhiyuli opened this issue Oct 30, 2018 · 0 comments
Open

hs.createReferencedFile() throws out an error occasionally #91

zhiyuli opened this issue Oct 30, 2018 · 0 comments

Comments

@zhiyuli
Copy link
Member

zhiyuli commented Oct 30, 2018

The same code works fine most of the time, but it throws out this error occasionally:
Not sure it is a hs_restclient issue or REST endpoint issue on hydroshare side:

hs.createReferencedFile(pid=resource_id, path='data/contents', name='landing_page.url', ref_url="https://www.byu.edu/")

Traceback (most recent call last):
File "C:/Users/Drew/PycharmProjects/czo/bulk-resource-creator/hs_json.py", line 128, in
hs.createReferencedFile(pid=resource_id, path='data/contents', name='landing_page.url', ref_url="https://www.byu.edu/")
File "C:\Users\Drew\Miniconda3\envs\py27\lib\site-packages\hs_restclient_init_.py", line 1111, in createReferencedFile
raise HydroShareHTTPException((url, 'POST', r.status_code))
File "C:\Users\Drew\Miniconda3\envs\py27\lib\site-packages\hs_restclient\exceptions.py", line 66, in init
self.status_msg = args[3]
IndexError: tuple index out of range

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant