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 am new to Spyder & the Jupyter plugin. I was just trying to close a notebook, and this error window popped up.
Traceback
File "/Users/marcedw/opt/anaconda3/lib/python3.7/site-packages/spyder_notebook/widgets/notebooktabwidget.py", line 214, in close_client
client.shutdown_kernel()
File "/Users/marcedw/opt/anaconda3/lib/python3.7/site-packages/spyder_notebook/widgets/client.py", line 312, in shutdown_kernel
kernel_id =self.get_kernel_id()
File "/Users/marcedw/opt/anaconda3/lib/python3.7/site-packages/spyder_notebook/widgets/client.py", line 291, in get_kernel_id
sessions = json.loads(sessions_response.content.decode())
File "/Users/marcedw/opt/anaconda3/lib/python3.7/json/__init__.py", line 348, in loadsreturn _default_decoder.decode(s)
File "/Users/marcedw/opt/anaconda3/lib/python3.7/json/decoder.py", line 337, in decode
obj, end =self.raw_decode(s, idx=_w(s, 0).end())
File "/Users/marcedw/opt/anaconda3/lib/python3.7/json/decoder.py", line 355, in raw_decoderaise JSONDecodeError("Expecting value", s, err.value) fromNonejson.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
I experience the same JSON error running Spyder on Window 10, only the last line differs: raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 2 column 1 (char 1)
It looks like there is a bug in the code introduced in PR #232, in that the plugin tries to decode the server response before checking the response status. It's plausible that if the response status indicates an error, the response itself is incorrect or incomplete or empty, and that would explain the error message. I will fix this and hopefully that will resolve the issue.
Description
What steps will reproduce the problem?
I am new to Spyder & the Jupyter plugin. I was just trying to close a notebook, and this error window popped up.
Traceback
Versions
Dependencies
The text was updated successfully, but these errors were encountered: