Skip to content

JSON decode error #18

@gsteinLTU

Description

@gsteinLTU

One of the students ran into this at the end of class. I believe it was working before then, and nothing seemed off about her code.

I can try to get the project json file from her if needed, although it looks like a cloud-related thing.

Traceback (most recent call last):

  File "<stdin>", line 6, in <module>
  File "/opt/anaconda3/lib/python3.13/site-packag
es/netsblox/editor.py", line 87, in __init__
    res = _json.loads(_requests.post(f'{self._bas
e_url}/projects/',
        _common.small_json({ 'clientId': self._cl
ient_id, 'name': self._project_name }),
        headers = { 'Content-Type': 'application/
json' }).text)
  File "/opt/anaconda3/lib/python3.13/json/__init
__.py", line 346, in loads
    return _default_decoder.decode(s)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^
  File "/opt/anaconda3/lib/python3.13/json/decode
r.py", line 345, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).en
d())
               ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
^^^^
  File "/opt/anaconda3/lib/python3.13/json/decode
r.py", line 363, in raw_decode
    raise JSONDecodeError("Expecting value", s, e
rr.value) from None
json.decoder.JSONDecodeError: Expecting value: li
ne 1 column 1 (char 0)

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions