Http client timing out sooner than the timeout option #53618
Replies: 5 comments
-
My first thought was that withOptions() is overwriting it, but I don't think that's the case. Is there any code not included here that may be modifying the client object? |
Beta Was this translation helpful? Give feedback.
-
Hey there, thanks for reporting this issue. We'll need more info and/or code to debug this further. Can you please create a repository with the command below, commit the code that reproduces the issue as one separate commit on the main/master branch and share the repository here? Please make sure that you have the latest version of the Laravel installer in order to run this command. Please also make sure you have both Git & the GitHub CLI tool properly set up.
Do not amend and create a separate commit with your custom changes. After you've posted the repository, we'll try to reproduce the issue. Thanks! |
Beta Was this translation helpful? Give feedback.
-
@cosmastech Not that i can think, I've experienced this in a few projects recently |
Beta Was this translation helpful? Give feedback.
-
Could it not be the connectTimeout that you are hitting in this specific case? Sense pr default they aren't the same and they shouldn't be. |
Beta Was this translation helpful? Give feedback.
-
I'm not setting So I think there's some bug somewhere here in Laravel? |
Beta Was this translation helpful? Give feedback.
-
Laravel Version
11.30.0
PHP Version
8.3.9
Database Driver & Version
MySQL 8
Description
Recently, I've been getting some
Curl 28
errors relating to time outs sooner than the timeout specified on theHttp
client. This is strange and has been intermittently happening for a few weeks now.Despite passing a number in to the
timeout
method, e.g: 25, I'm seeing errors cutting off sooner:Steps To Reproduce
I have a method that builds up the HTTP client:
Beta Was this translation helpful? Give feedback.
All reactions