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

danilotrix's avatar

OpenAi api SSL Issue only in Jobs

Hi guys, I'm using the openAI API with laravel and I managed to make it work. I'm now trying to implements Jobs so that the use does not wait the competition of the API call. However, in this case, I get this error

[2023-02-13 20:42:11] local.ERROR: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://api.openai.com/v1/completions {"exception":"[object] (OpenAI\Exceptions\TransporterException(code: 0): cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://api.openai.com/v1/completions at C:\MAMP\htdocs\ArtiFlow\vendor\openai-php\client\src\Transporters\HttpTransporter.php:44)
[stacktrace]

I have already downloaded a certificate and added it to the php.ini that's why it normally works except with the queue and Jobs.

Any help?

thank you

0 likes
1 reply

Please or to participate in this conversation.