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

catch in the UI a server restart (invalid secret) #1903

Closed
ReimarBauer opened this issue Aug 18, 2023 · 0 comments · Fixed by #1906
Closed

catch in the UI a server restart (invalid secret) #1903

ReimarBauer opened this issue Aug 18, 2023 · 0 comments · Fixed by #1906
Assignees
Labels
bug Something isn't working ESP-Sprint We do a MSS sprint on EuroSciPy 18.8. in Basel. (candidates should be marked with this) msui
Milestone

Comments

@ReimarBauer
Copy link
Member

ReimarBauer commented Aug 18, 2023

When a server invalidates the secret then a running client can get a traceback on next action.
Also a traceback may happen on a server reboot, when the service is for a short moment offline.
Or on the client site on a instable network connection.

Fatal error in MSS 8.2.0 on Linux-6.2.0-10018-tuxedo-x86_64-with-glibc2.35
Python 3.10.8 | packaged by conda-forge | (main, Nov 22 2022, 08:23:14) [GCC 10.4.0]

Please report bugs in MSS to https://github.com/Open-MSS/MSS

Information about the fatal error:

Traceback (most recent call last):
  File "/home/reimar/mambaforge/envs/mssenv/lib/python3.10/site-packages/mslib/msui/mscolab.py", line 1668, in set_active_op_id
    self.load_wps_from_server()
  File "/home/reimar/mambaforge/envs/mssenv/lib/python3.10/site-packages/mslib/msui/mscolab.py", line 1793, in load_wps_from_server
    xml_content = self.request_wps_from_server()
  File "/home/reimar/mambaforge/envs/mssenv/lib/python3.10/site-packages/mslib/msui/mscolab.py", line 1782, in request_wps_from_server
    xml_content = json.loads(r.text)["content"]
  File "/home/reimar/mambaforge/envs/mssenv/lib/python3.10/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/home/reimar/mambaforge/envs/mssenv/lib/python3.10/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/home/reimar/mambaforge/envs/mssenv/lib/python3.10/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
@ReimarBauer ReimarBauer added bug Something isn't working msui labels Aug 18, 2023
@ReimarBauer ReimarBauer added this to the 8.2.1 milestone Aug 18, 2023
@ReimarBauer ReimarBauer added the ESP-Sprint We do a MSS sprint on EuroSciPy 18.8. in Basel. (candidates should be marked with this) label Aug 18, 2023
@ReimarBauer ReimarBauer changed the title catch in the UI a server restart catch in the UI a server restart (invalid secret) Aug 18, 2023
@ReimarBauer ReimarBauer self-assigned this Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ESP-Sprint We do a MSS sprint on EuroSciPy 18.8. in Basel. (candidates should be marked with this) msui
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant