-
Notifications
You must be signed in to change notification settings - Fork 115
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
share_file_with_link OCS error 996 #259
Comments
Not sure 100% related to your issue since you didnt post code, there seems to be a regression from commit 5aa5b93 which inconditionally checks that the server replied with a 'name' attribute, which doesnt seem to be the case with nextcloud 21. here's a simple reproducer:
which gives:
sadly, it seems to be the same if you pass a looking at the doc (not sure its the right/latest one ?) name isnt mentioned on https://docs.nextcloud.com/server/latest/developer_manual/client_apis/OCS/ocs-share-api.html#create-a-new-share but it is on https://doc.owncloud.com/server/developer_manual/core/apis/ocs-share-api.html#create-a-new-share so i'd say this is only working with owncloud ? testing via curl, there's no name attribute in the returned XML for nextcloud 21.
|
Hey @landryb ,
sorry about this, but as I wrote in my first post I simply used the code provided in the README.md.
gives me the aforementioned OSCError 996.
Therefore, it seems to me that my issue is unrelated to the one you are mentioning. Any thoughts about it? Edoardo |
well, if you're using pyocclient against owncloud, no i dont think that's the same issue :) |
Good to know! |
Any news on this?
I increased verbosity level on owncloud server to debug and while I get logs while the login is happening and while the upload is happening, I get nothing in the logs when the server sends this 996 error, which in the owncloud documentation is supposed to be 'internal server error'. |
@CrohnEngineer , Any solution for the error oc.share_file_with_link() raising 996 error? |
Hey @lathass-123 , I found a turnaround by using the same code but disabling the SSL credentials check; however, I would not advise doing that since it is not safe from a security point of view. |
Hey CrohnEngineer, Thank you for the update. I will check what i can do. |
Hey everybody,
following the usage example, I'm writing a simple script to put a file on OwnCloud and then share it with a link.
Everything goes fine, until I call
oc.share_file_with_link(remote_file_path)
, when the error stack trace reports a OSC error 996 (which, if I'm not mistaken, corresponds to a server error).Can anybody suggest me what is happening here? Has anyone else encountered this issue before?
I anticipate that I use pyocclient 0.6, but I do not manage the OC server directly, so I might miss some information on that side.
Thank you in advance!
The text was updated successfully, but these errors were encountered: