We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm confused about the time unit in timeouts.
Apparently, in python, these are seconds.
r = requests.get(w, verify=False, timeout=10) # 10 seconds
I used in my config FiniteDuration and then readTimeout = config.readTimeout.toSeconds.toInt and it turned out that all requests are failing.
FiniteDuration
readTimeout = config.readTimeout.toSeconds.toInt
Looking at the README of requests-scala I think that it is using milliseconds:
requests.get("https://httpbin.org/delay/1", readTimeout = 10) // TimeoutException requests.get("https://httpbin.org/delay/1", readTimeout = 1500) // ok
ID: 85 Original Author: patrykcelinski link: Original Link
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm confused about the time unit in timeouts.
Apparently, in python, these are seconds.
I used in my config
FiniteDuration
and thenreadTimeout = config.readTimeout.toSeconds.toInt
and it turned out that all requests are failing.Looking at the README of requests-scala I think that it is using milliseconds:
ID: 85
Original Author: patrykcelinski
link: Original Link
The text was updated successfully, but these errors were encountered: