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
Most exceptions raised by Camoufox have an 'e' value that is a concise string without line breaks. However, I've noticed that when page.goto() times out, the formatting of the e value is different. I'm not sure if this is a bug or if it's intended behavior.
Screenshots:
/Users/matecsaj/PycharmProjects/wat-crawlee/venv/bin/python /Users/matecsaj/Library/Application Support/JetBrains/PyCharm2024.3/scratches/scratch_1.py
ERROR:root:Starting test
ERROR:root:Failed to load slow page: Page.goto: Timeout 0.001ms exceeded.
Call log:
- navigating to "http://httpstat.us/200?sleep=5000", waiting until "load"
ERROR:root:Ending test
Process finished with exit code 0
To Reproduce:
importasyncioimportloggingfromcamoufox.async_apiimportAsyncCamoufoxasyncdeftest_slow_page():
logging.basicConfig(level=logging.ERROR)
logging.error("Starting test")
try:
asyncwithAsyncCamoufox() asbrowser:
page=awaitbrowser.new_page()
# Intentionally tiny timeout for a slow-loading pageawaitpage.goto("http://httpstat.us/200?sleep=5000", timeout=0.001)
exceptExceptionase:
logging.error(f"Failed to load slow page: {e}")
logging.error("Ending test")
asyncio.run(test_slow_page())
Describe the bug:
Most exceptions raised by Camoufox have an 'e' value that is a concise string without line breaks. However, I've noticed that when page.goto() times out, the formatting of the e value is different. I'm not sure if this is a bug or if it's intended behavior.
Screenshots:
To Reproduce:
Version:
The text was updated successfully, but these errors were encountered: