Mmh, do you have some more context on how you're calling your job?
Also, did you verify if the job works without the call to the API? Does it log anything if you just call an empty job?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
So we have an API call to to our Magento application which is called in a Job. I'm running into a weird situation where when the job is executed, the response has no data. We've already confirmed that the API works when we execute it in a controller or a command via the command line. When run from a job, $response shows nothing in the log or the dd().
$magento = new Magento();
$response = $magento->api('Customers')->isCustomerAvailableByEmail("[email protected]");
Log::debug('Magento returned data, ' . $response->json());
dd($response->json());
Please or to participate in this conversation.