-
Notifications
You must be signed in to change notification settings - Fork 513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scrapy_splash use chromium ERROR #964
Comments
Same problem here, did you find any way to solve it? |
does not work however
works I believe the issue is related to this only being relevant to the render.html endpoint |
Any solution? still hapenning now with splash 3.5 |
Splash version: 3.4
engine: chromium
Code:
Error:
'Traceback (most recent call last):\n File "/root/venv/WebMonitor/lib/python3.7/site-packages/twisted/internet/defer.py", line 568, in _startRunCallbacks\n self._runCallbacks()\n File "/root/venv/WebMonitor/lib/python3.7/site-packages/twisted/internet/defer.py", line 654, in _runCallbacks\n current.result = callback(current.result, *args, **kw)\n File "/root/venv/WebMonitor/lib/python3.7/site-packages/twisted/internet/defer.py", line 1613, in unwindGenerator\n return _cancellableInlineCallbacks(gen)\n File "/root/venv/WebMonitor/lib/python3.7/site-packages/twisted/internet/defer.py", line 1529, in _cancellableInlineCallbacks\n _inlineCallbacks(None, g, status)\n--- <exception caught here> ---\n File "/root/venv/WebMonitor/lib/python3.7/site-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks\n result = g.send(result)\n File "/root/venv/WebMonitor/lib/python3.7/site-packages/scrapy/core/downloader/middleware.py", line 53, in process_response\n spider=spider)\n File "/root/venv/WebMonitor/lib/python3.7/site-packages/scrapy_splash/middleware.py", line 388, in process_response\n response = self._change_response_class(request, response)\n File "/root/venv/WebMonitor/lib/python3.7/site-packages/scrapy_splash/middleware.py", line 409, in _change_response_class\n response = response.replace(cls=respcls, request=request)\n File "/root/venv/WebMonitor/lib/python3.7/site-packages/scrapy/http/response/text.py", line 54, in replace\n return Response.replace(self, *args, **kwargs)\n File "/root/venv/WebMonitor/lib/python3.7/site-packages/scrapy/http/response/__init__.py", line 81, in replace\n return cls(*args, **kwargs)\n File "/root/venv/WebMonitor/lib/python3.7/site-packages/scrapy_splash/response.py", line 99, in __init__\n self._load_from_json()\n File "/root/venv/WebMonitor/lib/python3.7/site-packages/scrapy_splash/response.py", line 145, in _load_from_json\n error = self.data[\'info\'][\'error\']\nbuiltins.TypeError: string indices must be integers\n'
Reason:
If POST Request have headers, the splash send error back。
The text was updated successfully, but these errors were encountered: