May 16, 2022
10
Level 1
GuzzleHttp inside Job Not working
Guzzzle request not working inside Job Im getting this error
GuzzleHttp requires cURL, the allow_url_fopen ini setting, or a custom HTTP handler. {"exception":"[object] (RuntimeException(code: 0): GuzzleHttp requires cURL, the allow_url_fopen ini setting, or a custom HTTP handler.
public function handle()
{
// logger($this->webhookCall);
$url = $this->apiURL.'/'.$this->storeId.'/products/'.$this->webhookCall['payload']['entityId'];
try {
$request = Http::withToken($this->token)
->get($url);
} catch (ClientException $e) {
echo
$body = $e->getResponse()->getBody()->getContents();
return $body;
}
logger($request->json());
return ;
}
Please or to participate in this conversation.