Skip to content

"Call to httpx without timeout" when httpx has timeout by default #1175

Closed
@GuiGav

Description

Describe the bug

httpx library implements timeout by default : https://www.python-httpx.org/advanced/timeouts/ and release 1.7.10 introduces B113:request_without_timeout on httpx calls.
IMO, only calls specifying timeout=None should raise an issue.

Reproduction steps

import httpx
client = httpx.AsyncClient()
bandit main.py

Expected behavior

bandit should not raise an issue in this case.

Bandit version

1.7.10

Python version

3.11

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions