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

cookies=None exception #178

Open
coyotte508 opened this issue Dec 16, 2024 · 1 comment
Open

cookies=None exception #178

coyotte508 opened this issue Dec 16, 2024 · 1 comment

Comments

@coyotte508
Copy link

coyotte508 commented Dec 16, 2024

Using the latest docker container:

  File "/usr/lib/python3.12/site-packages/pyunifiprotect/session.py", line 361, in request
    await self.ensure_authenticated()
  File "/usr/lib/python3.12/site-packages/pyunifiprotect/session.py", line 421, in ensure_authenticated
    await self.authenticate()
  File "/usr/lib/python3.12/site-packages/pyunifiprotect/session.py", line 460, in authenticate
    response = await self.request("post", url=url, json=auth)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pyunifiprotect/session.py", line 380, in request
    await self._update_last_token_cookie(response, require=require_auth)
  File "/usr/lib/python3.12/site-packages/pyunifiprotect/session.py", line 494, in _update_last_token_cookie
    for name, value in [c.split("=") for c in cookies.split(";") if "=" in c]:
                                              ^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'split'

There may be issues on my side (IP or identifiers configuration), but it shouldn't throw an exception like that

@alear78
Copy link

alear78 commented Jan 12, 2025

Same issue here. Rolled back to 10.7 to resolve the issue.

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