You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The request.all_headers() and request.headers_array() methods stall if another request is done with the same page after an error. This results in an asyncio.exceptions.CancelledError at the end of the script.
If the methods are called on the last request of a page, an error is raised instead. I would expect to always receive the error (or the headers, as the normal request.headers works).
For Firefox and WebKit, the requestfailed event does not seem to be called for timedout requests, so the above code does not generate any errors for them.
The text was updated successfully, but these errors were encountered:
Context:
Code Snippet
python test.py
for normal behavior:TimeoutError, {headers}, Error
python test.py fail
for failing behavior:TimeoutError, {headers}, asyncio.Exception
test.py
:Describe the bug
The
request.all_headers()
andrequest.headers_array()
methods stall if another request is done with the same page after an error. This results in anasyncio.exceptions.CancelledError
at the end of the script.If the methods are called on the last request of a page, an error is raised instead. I would expect to always receive the error (or the headers, as the normal
request.headers
works).For Firefox and WebKit, the
requestfailed
event does not seem to be called for timedout requests, so the above code does not generate any errors for them.The text was updated successfully, but these errors were encountered: