Skip to content

Logging in to Lens fails #26

@prokoudine

Description

@prokoudine

Here is the log:

15:28:07  Traceback (most recent call last):
15:28:07    File "/tmp/.mount_FreeCAiMFaOb/usr/lib/python3.11/site-packages/requests/models.py", line 976, in json
15:28:07      return complexjson.loads(self.text, **kwargs)
15:28:07             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15:28:07    File "/tmp/.mount_FreeCAiMFaOb/usr/lib/python3.11/json/__init__.py", line 346, in loads
15:28:07      return _default_decoder.decode(s)
15:28:07             ^^^^^^^^^^^^^^^^^^^^^^^^^^
15:28:07    File "/tmp/.mount_FreeCAiMFaOb/usr/lib/python3.11/json/decoder.py", line 337, in decode
15:28:07      obj, end = self.raw_decode(s, idx=_w(s, 0).end())
15:28:07                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15:28:07    File "/tmp/.mount_FreeCAiMFaOb/usr/lib/python3.11/json/decoder.py", line 355, in raw_decode
15:28:07      raise JSONDecodeError("Expecting value", s, err.value) from None
15:28:07  json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
15:28:07  
15:28:07  During handling of the above exception, another exception occurred:
15:28:07  
15:28:07  Traceback (most recent call last):
15:28:07    File "/home/alex/.local/share/FreeCAD/v1-2/Mod/Ondsel-Lens/WorkspaceView.py", line 865, in login_out_triggered
15:28:07      self.login()
15:28:07    File "/home/alex/.local/share/FreeCAD/v1-2/Mod/Ondsel-Lens/WorkspaceView.py", line 872, in login
15:28:07      try_login = self.prompt_for_login()
15:28:07                  ^^^^^^^^^^^^^^^^^^^^^^^
15:28:07    File "/home/alex/.local/share/FreeCAD/v1-2/Mod/Ondsel-Lens/WorkspaceView.py", line 854, in prompt_for_login
15:28:07      return self.attempt_authenticate(profile, dialog.get_password())
15:28:07             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15:28:07    File "/home/alex/.local/share/FreeCAD/v1-2/Mod/Ondsel-Lens/WorkspaceView.py", line 818, in attempt_authenticate
15:28:07      self.api.authenticate()
15:28:07    File "/home/alex/.local/share/FreeCAD/v1-2/Mod/Ondsel-Lens/APIClient.py", line 205, in authenticate
15:28:07      data = self._post(endpoint, headers=headers, data=json.dumps(payload))
15:28:07             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15:28:07    File "/home/alex/.local/share/FreeCAD/v1-2/Mod/Ondsel-Lens/APIClient.py", line 326, in _post
15:28:07      self._raiseException(
15:28:07    File "/home/alex/.local/share/FreeCAD/v1-2/Mod/Ondsel-Lens/APIClient.py", line 216, in _raiseException
15:28:07      + response.json()["message"]
15:28:07        ^^^^^^^^^^^^^^^
15:28:07    File "/tmp/.mount_FreeCAiMFaOb/usr/lib/python3.11/site-packages/requests/models.py", line 980, in json
15:28:07      raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
15:28:07  requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Did I do something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions