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

login to server not possible (invalid token) #286

Open
nnako opened this issue Jan 7, 2024 · 1 comment
Open

login to server not possible (invalid token) #286

nnako opened this issue Jan 7, 2024 · 1 comment

Comments

@nnako
Copy link

nnako commented Jan 7, 2024

Hi,

I use pyocclient for some years to automate file management on a NextCloud server using a small RaspberryPi GNU/Linux computer. On this system I finally could not get a NextCloud Client to run properly. So I had to switch to manual use of the pyocclient module.

Since yesterday, the login of pyocclient fails, although neither the credentials deposited on the server nor the credentials given to the login() function changed. The error message looks like this:

>>> oc = owncloud.Client('<url>')
>>> oc.login('<user>', '<pass>')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/pi/APP__filesync/_venv/lib/python3.7/site-packages/owncloud/owncloud.py", line 362, in login
    self._update_capabilities()
  File "/home/pi/APP__filesync/_venv/lib/python3.7/site-packages/owncloud/owncloud.py", line 1934, in _update_capabilities
    tree = ET.fromstring(res.content)
  File "/usr/lib/python3.7/xml/etree/ElementTree.py", line 1315, in XML
    parser.feed(text)
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 1, column 9

Seems like the login requirements on the server side decided to not comply to the concept implemented within pyocclient anymore. Maybe because of a "silent" NextCloud update on the server side. With "proper" NextCloud clients, I can still login to the NextCloud server using the same login credentials.

Does anybody know about such new incompatibilities?

Thanks.

@bigcat88
Copy link

Seems like the login requirements on the server side decided to not comply to the concept implemented within pyocclient anymore.

Did you tried nc_py_api?

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