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

eriktobben's avatar

Guzzle cURL error 56: OpenSSL

Hi,

I am trying to consume an API in Laravel with Guzzle. When testing the API with Postman everything works, but when using Guzzle in Laravel I get the following error:

cURL error 56: OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 54 (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

I am consuming other APIs which uses https and there are no problems there. I have tried searching for that error, but I can not find a solution.

I have checked and I do have OpenSSL on my Mac. (I am using Valet on macOS Mojave).

Any tips would be appreciated :)

0 likes
0 replies

Please or to participate in this conversation.