Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for timeout in POST request for a select query #177

Open
schmid-bosch opened this issue Nov 8, 2024 · 0 comments
Open

Support for timeout in POST request for a select query #177

schmid-bosch opened this issue Nov 8, 2024 · 0 comments

Comments

@schmid-bosch
Copy link

Hi,

We are observing some issues with POST requests that get stuck.
It would be nice if we could also use the query timeout on the python request POST request in order to make the request client raise an exception on the connection if it does not complete within X seconds.

For example:
r = self.client.post(
url,
data=params,
timeout=timeout/1000, # in seconds
headers={"Accept": content_type},
)

Note, currently there is no way to configure a timeout on the connection level - only on the query level, but this does necessarily kill the connection. :-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant