GrabTimeoutError
See original GitHub issueHello, I have exception like https://github.com/lorien/grab/issues/140, but I haven`t some DNS Errors. OS and network: OS: Windows 8 (x64) fixed DNS: 8.8.8.8
Script:
import pycurl;
from grab import Grab
import logging
print(pycurl.version);
print(pycurl.__file__);
logging.basicConfig(level=logging.DEBUG)
g = Grab(verbose_logging=True, debug=True)
g.go('http://github.com')
print g.xpath_text('//title')
script output:
PycURL/7.43.0 libcurl/7.47.0 OpenSSL/1.0.2f zlib/1.2.8 c-ares/1.10.0 libssh2/1.6.0
c:\Python27\lib\site-packages\pycurl.pyd
DEBUG:grab.network:[01] GET http://github.com
DEBUG:grab.transport.curl:i: Rebuilt URL to: http://github.com/
DEBUG:grab.transport.curl:i: Resolving timed out after 3000 milliseconds
DEBUG:grab.transport.curl:i: Closing connection 0
Traceback (most recent call last):
File "D:\pr_files\source\python\planned\htmlParser\bgsParser\NewPythonProject\src\bgsParser.py", line 10, in <module>
g.go('http://github.com')
File "c:\Python27\lib\site-packages\grab-0.6.30-py2.7.egg\grab\base.py", line 377, in go
return self.request(url=url, **kwargs)
File "c:\Python27\lib\site-packages\grab-0.6.30-py2.7.egg\grab\base.py", line 450, in request
self.transport.request()
File "c:\Python27\lib\site-packages\grab-0.6.30-py2.7.egg\grab\transport\curl.py", line 489, in request
raise error.GrabTimeoutError(ex.args[0], ex.args[1])
grab.error.GrabTimeoutError: [Errno 28] Resolving timed out after 3000 milliseconds
I tried to reinstall curl:
C:\Python27\Scripts>pip install pycurl-7.43.0-cp27-none-win_amd64.whl --upgrade
Processing c:\python27\scripts\pycurl-7.43.0-cp27-none-win_amd64.whl
Installing collected packages: pycurl
Found existing installation: pycurl 7.43.0
Uninstalling pycurl-7.43.0:
Successfully uninstalled pycurl-7.43.0
Successfully installed pycurl-7.43.0
but It doesn`t work. What can be wrong?
Thank you for help.
Issue Analytics
- State:
- Created 8 years ago
- Comments:20 (6 by maintainers)
Top Results From Across the Web
Timeout error using grab - NI Community - National Instruments
Hi,. I keep getting the following timeout error: Error -1074397150 occurred at IMAQ GrabAcquire.vi:1. Possible reason(s): NI-IMAQ: A timeout ...
Read more >Checking for Timeout Error in python - Stack Overflow
When the request times out the err I get back is a tuple that it tries and fails to serialize. My question is...
Read more >TimeoutError: Timed out after 30000 ms while trying ... - GitHub
I get both TimeoutError: Navigation Timeout Exceeded: 30000ms exceeded and TimeoutError while connecting to Chrome :( ...
Read more >concurrent.futures — Launching parallel tasks — Python 3.11 ...
If the call hasn't completed in timeout seconds, then a TimeoutError will be raised. timeout can be an int or float. If timeout...
Read more >A Complete Guide to Timeouts in Node.js - Better Stack
Assigning timeout values prevents network operations in Node.js from blocking indefinitely. This article provides extensive instruction on how to time out ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Спасибо! Все заработало!
ramonsantiago, pycurl откатите на версию 7.19