Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NTT1906 opened this issue Aug 22, 2023 · 1 comment
Open

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

NTT1906 opened this issue Aug 22, 2023 · 1 comment

Comments

@NTT1906
Copy link

NTT1906 commented Aug 22, 2023

$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.

@joykumarbera
Copy link

same issue i have

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants