Docker image error when run crawler docsearch #475
-
I used command docker follow : docker run -it --env-file=.env -e "CONFIG=$(cat ./config.json | jq -r tostring)" algolia/docsearch-scraper but now all of a sudden it has an error: 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 <module>
run_config(environ['CONFIG'])
File "/root/src/index.py", line 45, in run_config
config.query_rules
File "/root/src/algolia_helper.py", line 24, in __init__
self.algolia_index_tmp.set_settings(settings)
File "/root/.local/share/virtualenvs/root-BuDEOXnJ/lib/python3.6/site-packages/algoliasearch/search_index.py", line 259, in set_settings
request_options,
File "/root/.local/share/virtualenvs/root-BuDEOXnJ/lib/python3.6/site-packages/algoliasearch/http/transporter.py", line 35, in write
return self.request(verb, hosts, path, data, request_options, timeout)
File "/root/.local/share/virtualenvs/root-BuDEOXnJ/lib/python3.6/site-packages/algoliasearch/http/transporter.py", line 72, in request
return self.retry(hosts, request, relative_url)
File "/root/.local/share/virtualenvs/root-BuDEOXnJ/lib/python3.6/site-packages/algoliasearch/http/transporter.py", line 92, in retry
raise RequestException(content, response.status_code)
algoliasearch.exceptions.RequestException: Invalid object attributes: custom_settings near line:1 column:1848 How to fix it ??? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Emm, first make sure your config,json is correct for v2. If you still have issues, you may check your script and try reporting to the repo where you get this script. You should only report docsearch plugin bugs here, and as we have guides how to craw your website built with VuePress2, you can also report problem if you can not craw the right records with our config. But a issue with your own crawler is definitely out of scope, and you may need to report them to Algolia. |
Beta Was this translation helpful? Give feedback.
-
Well, I'm still using a vuepress v1, how do i get it to work? |
Beta Was this translation helpful? Give feedback.
Emm, first make sure your config,json is correct for v2. If you still have issues, you may check your script and try reporting to the repo where you get this script.
You should only report docsearch plugin bugs here, and as we have guides how to craw your website built with VuePress2, you can also report problem if you can not craw the right records with our config.
But a issue with your own crawler is definitely out of scope, and you may need to report them to Algolia.