imagekit-php icon indicating copy to clipboard operation
imagekit-php copied to clipboard

Status code must be an integer value between 1xx and 5xx.

Open NTT1906 opened this issue 1 year ago • 1 comments

$img = file_get_contents(__DIR__."/sample_image.jpeg");
$encodedImageData = base64_encode($img);

$uploadFile = $imageKit->uploadFile([
    'file' => $encodedImageData,
    'fileName' => 'sample.jpeg',
    'folder' => 'sample-folder',
    'tags' => implode(['abd', 'def']),
    'useUniqueFileName' => false,
    'customCoordinates' => implode(',', ['10', '10', '100', '100'])
]);
var_dump($uploadFile);
object(ImageKit\Utils\Response)#53 (3) {
  ["error"]=>
  string(57) "Status code must be an integer value between 1xx and 5xx."
  ["result"]=>
  NULL
  ["responseMetadata"]=>
  NULL
}

The status seems to be 0?

The solutions in spatie/crawler/issues/271 don't work as they failed to patch.

NTT1906 avatar Aug 22 '23 19:08 NTT1906

same issue i have

joykumarbera avatar Nov 30 '23 18:11 joykumarbera