Skip to content

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

Open

Description

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

Activity

  1. joykumarbera commented on Nov 30, 2023

    @joykumarbera

    same issue i have

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions