Closed sts-ryan-holton closed 20 hours ago
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?
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.
laravel new bug-report --github="--public"
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!
@cosmastech Not that i can think, I've experienced this in a few projects recently
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.
I'm not setting connect_timeout
. Looking at Laravel's code, looks lihe their default value for connect_timeout
is 10 seconds, but my error is 5 seconds. I'm passing 25 seconds for the timeout
option. In the PendingRequest.php
both values are seconds.
So I think there's some bug somewhere here in Laravel?
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: