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

Error: 'Please specify a valid user' #54

Open
jatin-bhatia-zz opened this issue Apr 17, 2020 · 0 comments
Open

Error: 'Please specify a valid user' #54

jatin-bhatia-zz opened this issue Apr 17, 2020 · 0 comments

Comments

@jatin-bhatia-zz
Copy link

jatin-bhatia-zz commented Apr 17, 2020

Hi @matejak ,

When I try to create an upload using the following code, I get the error below: "Please specify a valid user". But I am creating a public link, so what user do I need to specify?

Can you please help with what I am not doing correctly? Would really appreciate that. Thanks.

nxc = NextCloud(endpoint=NEXTCLOUD_URL, user=NEXTCLOUD_USERNAME, password=NEXTCLOUD_PASSWORD, json_output=to_js)

aa = nxc.create_share('/Reports/sample_leads_data_for_testing.tsv', ShareType.PUBLIC_LINK) print(aa.full_data)

The error I get is as follows:

{'ocs': {'meta': {'status': 'failure', 'statuscode': 404, 'message': 'Please specify a valid user'}, 'data': []}}

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