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.setAccessRules(resource_id, public=True) stopped working in 1.3 #95

Open
zhiyuli opened this issue Nov 7, 2018 · 1 comment
Open

Comments

@zhiyuli
Copy link
Member

zhiyuli commented Nov 7, 2018

hs.setAccessRules(resource_id, public=True) stopped working in 1.3

I was able to create a resource and add required metadata, but not make it public anymore

File "C:\Users\Drew\Miniconda3\envs\py27\lib\site-packages\hs_restclient_init_.py", line 805, in setAccessRules
raise HydroShareNotAuthorized(('PUT', url))
hs_restclient.exceptions.HydroShareNotAuthorized: Not authorized to perform PUT on https://dev-hs-6.cuahsi.org/hsapi/resource/accessRules/57d9241202ee4ea98735752ac433ec91/.

@c-krew
Copy link

c-krew commented Dec 11, 2018

I received the same error when I tried hs.createResourceFolder(resource_id, path). HydroShareNotAuthorized: Not authorized to perform PUT on https://www.hydroshare.org/hsapi/resource/21c38e32c8f34de1a3073e738e7726bc/folders/12-11-2018-21:21:35. This resource is mine and I used my credentials for authentication

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

2 participants