Skip to content

Unhandled TimeoutError #48

@liquidsec

Description

@liquidsec
2025-03-07 13:11:59,097 [ERROR] bbot.scanner scanner.py:1330 Error in codeql.handle_event(URL("http://REDACTED", module=httpx, tags={'in-scope', 'http-title-object-moved', 'status-301', 'ip-66-150-222-9', 'spider-danger', 'endpoint'})): /usr/lib/python3.12/asyncio/timeouts.py:115:__aexit__(): 
2025-03-07 13:11:59,097 [TRACE] bbot.scanner logger.py:162 Traceback (most recent call last):
  File "/usr/lib/python3.12/asyncio/tasks.py", line 520, in wait_for
    return await fut
           ^^^^^^^^^
  File "/home/liquid/.cache/pypoetry/virtualenvs/bbot-N1wmp7PR-py3.12/lib/python3.12/site-packages/webcap/tab.py", line 188, in navigate
    await self.request("Page.navigate", url=url)
  File "/home/liquid/.cache/pypoetry/virtualenvs/bbot-N1wmp7PR-py3.12/lib/python3.12/site-packages/webcap/browser.py", line 201, in request
    return await future
           ^^^^^^^^^^^^
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/liquid/bbot/bbot/scanner/scanner.py", line 1307, in _acatch
    yield
  File "/home/liquid/bbot/bbot/modules/base.py", line 697, in _worker
    await self.handle_event(event)
  File "/home/liquid/bbot/bbot/modules/codeql.py", line 179, in handle_event
    async for url, webscreenshot in b.screenshot_urls([event.data]):
  File "/home/liquid/.cache/pypoetry/virtualenvs/bbot-N1wmp7PR-py3.12/lib/python3.12/site-packages/webcap/browser.py", line 118, in screenshot_urls
    async for url, webscreenshot in task_pool(self.screenshot, urls, threads=self.threads):
  File "/home/liquid/.cache/pypoetry/virtualenvs/bbot-N1wmp7PR-py3.12/lib/python3.12/site-packages/webcap/helpers.py", line 43, in task_pool
    result = task.result()
             ^^^^^^^^^^^^^
  File "/home/liquid/.cache/pypoetry/virtualenvs/bbot-N1wmp7PR-py3.12/lib/python3.12/site-packages/webcap/browser.py", line 123, in screenshot
    tab = await self.new_tab(url)
          ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/liquid/.cache/pypoetry/virtualenvs/bbot-N1wmp7PR-py3.12/lib/python3.12/site-packages/webcap/browser.py", line 133, in new_tab
    await asyncio.wait_for(tab.navigate(url), timeout=self.timeout)
  File "/usr/lib/python3.12/asyncio/tasks.py", line 519, in wait_for
    async with timeouts.timeout(timeout):
  File "/usr/lib/python3.12/asyncio/timeouts.py", line 115, in __aexit__
    raise TimeoutError from exc_val
TimeoutError

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions