Sentry-laravel: 30 seconds timeout error exception in php-http\client-common\src\Plugin\RetryPlugin

Created on 18 Jan 2019  路  5Comments  路  Source: getsentry/sentry-laravel

Packages info:

laravel/framework v5.7.19
sentry/sentry                         2.0.0-beta1
sentry/sentry-laravel                 1.0.0-beta2
php-http/client-common 1.9.0

and I get this error:

[Fri Jan 18 14:39:18 2019] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in
C:\Users\yoyosan\Work\abonati\vendor\php-http\client-common\src\Plugin\RetryPlugin.php on line 121

I've tried :

  • to use the DSN URI in the browser and it works fine.
  • to send one test message using the command line:
php artisan sentry:test
[sentry] Client DSN discovered!
[sentry] Generating test event
[sentry] Sending test event
[sentry] Event sent: blablablabla

Nothing is sent.

Most helpful comment

I would suggest to use https://github.com/paragonie/certainty in similar cases.

All 5 comments

/cc @HazAT @Jean85 @ste93cry

Can you try setting the send_attempts configuration option to something lower than the default value (which btw is too much high and we should change it)? I don't know why but I believe that for some reason you get an error and Httplug tries to send the event again and again up to the specified amount of times, however the PHP timeout comes first

image

Increased to 20(as you can see above) and I get the same error. There's no error in my laravel app logs.

I found the problem.

The following error is thrown: [object] (Http\\Client\\Exception\\RequestException(code: 0): cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

That's because I'm using Windows and cli php to develop, therefore I had to:

I would suggest to use https://github.com/paragonie/certainty in similar cases.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Vladelis picture Vladelis  路  9Comments

vladislavtkachenko picture vladislavtkachenko  路  4Comments

andrey-helldar picture andrey-helldar  路  7Comments

jstolp picture jstolp  路  4Comments

Dalabad picture Dalabad  路  3Comments