[GH-ISSUE #269] JSON Decoder Problem with Interact --config-file #224

Closed
opened 2026-03-02 23:38:53 +03:00 by kerem · 2 comments
Owner

Originally created by @fp231 on GitHub (Feb 15, 2021).
Original GitHub issue: https://github.com/alexal1/Insomniac/issues/269

Hey, am still loving this project and i run multiple devices with great fun.

But i encountered an issue with the the run config-file option. IUf i use interact i have no problem at all. Just when i try to use the config file .json i get the following erreo:

[02/15 19:02:34] Your activation code is confirmed, welcome!
Traceback (most recent call last):
File "start.py", line 4, in
insomniac.run(activation_code)
File "/home/pi/Desktop/insomniac/insomniac/init.py", line 27, in run
insomniac_session.run()
File "", line 127, in run
File "/home/pi/Desktop/insomniac/insomniac/session.py", line 136, in parse_args
ok, args = parse_arguments(self.get_session_args())
File "/home/pi/Desktop/insomniac/insomniac/params.py", line 42, in parse_arguments
refresh_args_by_conf_file(args)
File "/home/pi/Desktop/insomniac/insomniac/params.py", line 68, in refresh_args_by_conf_file
params = json.load(json_file)
File "/usr/lib/python3.7/json/init.py", line 296, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/usr/lib/python3.7/json/init.py", line 348, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.7/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.7/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 87 column 5 (char 3603)

Does anybody have an idea what i am missing? Thanks

Originally created by @fp231 on GitHub (Feb 15, 2021). Original GitHub issue: https://github.com/alexal1/Insomniac/issues/269 Hey, am still loving this project and i run multiple devices with great fun. But i encountered an issue with the the run config-file option. IUf i use interact i have no problem at all. Just when i try to use the config file .json i get the following erreo: [02/15 19:02:34] Your activation code is confirmed, welcome! Traceback (most recent call last): File "start.py", line 4, in <module> insomniac.run(activation_code) File "/home/pi/Desktop/insomniac/insomniac/__init__.py", line 27, in run insomniac_session.run() File "<string>", line 127, in run File "/home/pi/Desktop/insomniac/insomniac/session.py", line 136, in parse_args ok, args = parse_arguments(self.get_session_args()) File "/home/pi/Desktop/insomniac/insomniac/params.py", line 42, in parse_arguments refresh_args_by_conf_file(args) File "/home/pi/Desktop/insomniac/insomniac/params.py", line 68, in refresh_args_by_conf_file params = json.load(json_file) File "/usr/lib/python3.7/json/__init__.py", line 296, in load parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw) File "/usr/lib/python3.7/json/__init__.py", line 348, in loads return _default_decoder.decode(s) File "/usr/lib/python3.7/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.7/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 87 column 5 (char 3603) Does anybody have an idea what i am missing? Thanks
kerem closed this issue 2026-03-02 23:38:53 +03:00
Author
Owner

@Fadude commented on GitHub (Feb 15, 2021):

Seems like you have a json format issue on your config file (line 87, probably some , is missing or something like that..).
Try to validate your json stracture

<!-- gh-comment-id:779452479 --> @Fadude commented on GitHub (Feb 15, 2021): Seems like you have a json format issue on your config file (line 87, probably some , is missing or something like that..). Try to validate your json stracture
Author
Owner

@fp231 commented on GitHub (Feb 16, 2021):

And the .json was corrupted in line 87. Thank for hinting to my stupidness so kindly. It was a , where it shouldn't be. I love this community and this great thing you call insomniac. Thanks.

<!-- gh-comment-id:779661684 --> @fp231 commented on GitHub (Feb 16, 2021): And the .json was corrupted in line 87. Thank for hinting to my stupidness so kindly. It was a , where it shouldn't be. I love this community and this great thing you call insomniac. Thanks.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Insomniac#224
No description provided.