Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

HallOfCode's avatar

Laravel Queue Jobs getting an SSL Eof error?

Im currently experimenting with Laravel Queue Jobs, im doing simple things (contacting a HTTP Api) in the handle method which used to work normally in a Controller function, but if im using my php artisan queue:work then Im getting always this error: OpenSSL SSL_read: error:0A000126:SSL routines::unexpected eof while reading, errno 0

Im using php artisan serve as my local webserver on Linux - My guess is that maybe the Queue:work command uses a newer ssl version or something internally?

But I have no clue how to fix that right now.

0 likes
5 replies
abinash889's avatar

Hi HallOfCode Can you please add these two line if you are using CURL for interaction the API

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);

1 like
HallOfCode's avatar

@abinash889 Thank you abinash889, unfortunatly this didnt solved it :( I have no clue why this happens, it never happened before without Queue Worker... actually Ive tried it with Php8.1, 8.2 and 8.3 now

The Problems seems to be with the support of OpenSSL 3 for Php Curl, maybe the only workaround is replacing php curl by maybe guzzle or something, but then I need to change the whole client Im using mhhh

HallOfCode's avatar

@gych Thank you so much!. It worked :)

I installed Curl 7.88.1 on my system.

1 like

Please or to participate in this conversation.