Closed stevenbennitt closed 7 years ago
The error you have ValueError: CONFIG is not a valid JSON
says that you file is not a JSON.
Probably you mean ./bigcommerce.json
and not /bigcommerce.json
. There is a dot missing.
/filename
will try to find a file at the root of your drive, not in the current directory.
Yep, that was it just had the file path wrong.
Facing the same error
Traceback (most recent call last): File "/root/src/config/config_loader.py", line 101, in _load_config data = json.loads(config, object_pairs_hook=OrderedDict) File "/usr/lib/python3.6/json/init.py", line 367, in loads return cls(**kw).decode(s) File "/usr/lib/python3.6/json/decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.6/json/decoder.py", line 355, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/root/src/index.py", line 119, in
This is my command:docker run -it --env-file=.env -e "CONFIG=$(cat ./config.json | jq -r tostring)" algolia/docsearch-scraper
Any suggestions?
I just got this as well. Did you figure it out?
I got it after finding this issue.
Trying to run my config file and I'm getting the error CONFIG is not a valid JSON
Not sure what I'm missing.
Here's my config