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: xml.etree.ElementTree.ParseError: no element found: line 1, column 0 #240

Open
avatar-lavventura opened this issue Mar 14, 2020 · 1 comment

Comments

@avatar-lavventura
Copy link

avatar-lavventura commented Mar 14, 2020

When I try to login I get following error:

>>> import owncloud
>>>  oc = owncloud.Client("https://b2drop.eudat.eu/")
>>> oc.login("059ab6ba-4030-48bb-b81b-12115f531296", "12345")

Traceback (most recent call last):
  File "zoo.py", line 4, in <module>
    oc.login("059ab6ba-4030-48bb-b81b-12115f531296", "12345")
  File "/Users/alper/venv/lib/python3.7/site-packages/owncloud/owncloud.py", line 354, in login
    self._update_capabilities()
  File "/Users/alper/venv/lib/python3.7/site-packages/owncloud/owncloud.py", line 1798, in _update_capabilities
    tree = ET.fromstring(res.content)
  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/xml/etree/ElementTree.py", line 1316, in XML
    return parser.close()
xml.etree.ElementTree.ParseError: no element found: line 1, column 0

=> What may cause this error? is there any way to prevent it?

I think, I may exceed to login count where server rejects my login request. In order to handle it I think to save the oc object using pickle , https://stackoverflow.com/a/6568495/2402577. Hence, is there any time-limit for session of the login to be ended?

@BurnySc2
Copy link

Excuse me for digging out an old issue, but I just had this problem and it was due to using authelia and hidng my owncloud behind a middleware via a one_factor authentification.
Hope this helps to people accidently setting this up and forgetting about it.

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