mirror of
https://github.com/alexal1/Insomniac.git
synced 2026-04-26 10:05:50 +03:00
[GH-ISSUE #269] JSON Decoder Problem with Interact --config-file #224
Labels
No labels
bug
duplicate
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Insomniac#224
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@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
@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.