Closed themidnightoil closed 6 years ago
Same problem here, though using crawlera as a proxy.
@kennethreitz I can provide very extensive example if you need to test it.
Was not able to reproduce this issue testing in a number of situations.
In [19]: urls = ['https://httpbin.org/delay/2' for _ in range(10)]
In [20]: req_list = [grequests.get(url, proxies=proxies) for url in urls]
In [21]: result = grequests.map(req_list)
In [22]: result
Out[22]:
[<Response [200]>,
<Response [200]>,
<Response [200]>,
<Response [200]>,
<Response [200]>,
<Response [200]>,
<Response [200]>,
<Response [200]>,
<Response [200]>,
<Response [200]>]
If this is still an issue, try adding an exception handler and provide the applicable exception. I don't think this is an issue caused directly by grequests.
I'm having same issue when inside an async function, outside of an async function works fine
returns [None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None.,.,.,]