You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem where dtool_lookup_gui is able to connect to the lookup server, but then authentication fails in a second step.
The following message is displayed in the top bar: 0, message='Attempt to decode JSON with unexpected mimetype: text/html; charset=utf8', url=URL( <loopup server url>)
The problem seems to be server_config in MainApplication.py. There is some kind of authentication failure. Instead of a
valid configuration, the variable is set to the following HTML code string: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <title>401 Unauthorized</title> <h1>Unauthorized</h1> <p>The server could not verify that you are authorized to access the URL requested. You either supplied the wrong credentials (e.g. a bad password), or your browser doesn't understand how to supply the credentials required.</p>
It seems that failure to parse this HTML code leads to the aforementioned message in the top bar, which obscures the problem.
Note that if I simply set a wrong username or password, dtool_lookup_gui shows Authentication failed in the info bar at the top.
The text was updated successfully, but these errors were encountered:
The authentication problem is likely just a problem with my account, but the parsing error obscures the problem. The HTML error message is never shown on the terminal or in the UI.
The following error message is printed on the terminal:
Task exception was never retrieved
future: <Task finished name='Task-1' coro=<SignalHandler.connect() done, defined at /home/wnoehring/.local/lib/python3.9/site-packages/dtool_lookup_gui/MainApplication.py:343> exception=TypeError('string indices must be integers')>
Traceback (most recent call last):
File "/home/<user>/.local/lib/python3.9/site-packages/dtool_lookup_gui/MainApplication.py", line 362, in connect
self._refresh_results()
File "/home/<user>/.local/lib/python3.9/site-packages/dtool_lookup_gui/MainApplication.py", line 240, in _refresh_results
f"{self.server_config['version']}")
TypeError: string indices must be integers
I have a problem where
dtool_lookup_gui
is able to connect to the lookup server, but then authentication fails in a second step.The following message is displayed in the top bar:
0, message='Attempt to decode JSON with unexpected mimetype: text/html; charset=utf8', url=URL( <loopup server url>)
The problem seems to be
server_config
inMainApplication.py
. There is some kind of authentication failure. Instead of avalid configuration, the variable is set to the following HTML code string:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <title>401 Unauthorized</title> <h1>Unauthorized</h1> <p>The server could not verify that you are authorized to access the URL requested. You either supplied the wrong credentials (e.g. a bad password), or your browser doesn't understand how to supply the credentials required.</p>
It seems that failure to parse this HTML code leads to the aforementioned message in the top bar, which obscures the problem.
Note that if I simply set a wrong username or password,
dtool_lookup_gui
showsAuthentication failed
in the info bar at the top.The text was updated successfully, but these errors were encountered: