Open franck-grenier opened 2 years ago
having same problem..
What I did to avoid deployment failures due to timeouts : catch the exception
task('deploy:sentry:once', function(){
try {
invoke('deploy:sentry');
} catch (\Exception $e) {
info('Unable to push release or deploy to Sentry : ' . $e->getMessage());
}
})->once();
Clever)
Hej, I'm having the same problem and wanted to ask, if there will be an option to increase the curl timeout? https://github.com/deployphp/deployer/blob/master/src/Utility/Httpie.php#L173
Okay I see, using the setopt
function is helping with this issue:
https://github.com/deployphp/deployer/blob/master/src/Utility/Httpie.php#L141
@jackd248 could you please give an example what you have written into your deploy.php
to raise that timeout? Thanks a lot !
Hej @thyseus, i have only adjusted my task to send a notification, no global configuration.
Httpie::post(get('webhook'))
->setopt(CURLOPT_TIMEOUT, 10)
->jsonBody(
[
'text' => $message
]
)
->send();
Hello Deployer, I'm having troubles to POST my releases and their deploys to my self-hosted Sentry.
Randomly, POST requests are ended on client-side by Httpie timeout of 5s (https://github.com/deployphp/deployer/blob/master/src/Utility/Httpie.php#L153). I can see them arrive on my Sentry server responding 499.
Do you know how i can increase these Curl timeout params for the Sentry recipe ?
Thanks
Upvote & Fund