Closed seowzhenjun0126 closed 1 year ago
@seowzhenjun0126 The CONFIG
value should be a fully formed JSON object. In your screenshot it's missing all the double quotes around the key names and values.
The JSON object is directly output from jq, which doesn't have a double quote around the keys and values. Do you know how I can fix it through the jq commands? Thanks!
After some research, I have found a solution to this issue.
In Windows, use Git Bash to run the scraper to prevent the double quotes from being stripped before passing into Docker.
Reference: https://github.com/algolia/docsearch-scraper/issues/513
Thank you for documenting this!
Description
Hi, I am trying to run the scrapper as described here, but keep running into the same error. Does anyone know how to resolve this issue?
Steps to reproduce
run
docker run -it --env-file=c:\tmp\typesense-docsearch.env -e CONFIG=$(cat c:\tmp\typesense-docsearch-config.json | jq -r tostring) typesense/docsearch-scraper
Expected Behavior
Expect scrapper to run normally
Actual Behavior
I got this error message. It seems like CONFIG is not double quoted after being parsed by jq
Metadata
Typesense Version: 0.23.1
OS: Windows 11