Skip to content

Instantly share code, notes, and snippets.

@mdalaminbey
Created August 2, 2023 05:13
Show Gist options
  • Select an option

  • Save mdalaminbey/3fc3e4030ddd7596017269f8179ead81 to your computer and use it in GitHub Desktop.

Select an option

Save mdalaminbey/3fc3e4030ddd7596017269f8179ead81 to your computer and use it in GitHub Desktop.
[02-Aug-2023 05:09:26 UTC] PHP Fatal error: Uncaught Error: Wrong parameters for Exception([string $message [, long $code [, Throwable $previous = NULL]]]) in C:\laragon\www\helpgent\wp-content\plugins\helpgent-two-pro\app\Lib\Google\Drive.php:290
Stack trace:
#0 C:\laragon\www\helpgent\wp-content\plugins\helpgent-two-pro\app\Lib\Google\Drive.php(290): Exception->__construct('cURL error 28: ...', 'http_request_fa...')
#1 C:\laragon\www\helpgent\wp-content\plugins\helpgent-two-pro\app\MediaDrivers\GoogleDrive.php(84): HelpGentPro\App\Lib\Google\Drive->upload_chunk(Object(HelpGent\App\DTO\ChunkFileDTO), 'ADPycdv-iNCRV37...')
#2 C:\laragon\www\helpgent\wp-content\plugins\helpgent-two\app\Repositories\AttachmentRepository.php(201): HelpGentPro\App\MediaDrivers\GoogleDrive->upload_chunk(Object(HelpGent\App\DTO\ChunkFileDTO), Object(HelpGent\App\DTO\AttachmentUploadSessionDTO))
#3 C:\laragon\www\helpgent\wp-content\plugins\helpgent-two\app\Repositories\AttachmentRepository.php(164): HelpGent\App\Repositories\AttachmentRepository->upload_chunk(Object(HelpGent in C:\laragon\www\helpgent\wp-content\plugins\helpgent-two-pro\app\Lib\Google\Drive.php on line 290
[02-Aug-2023 05:11:33 UTC] PHP Fatal error: Uncaught Error: Wrong parameters for Exception([string $message [, long $code [, Throwable $previous = NULL]]]) in C:\laragon\www\helpgent\wp-content\plugins\helpgent-two-pro\app\Lib\Google\Drive.php:290
Stack trace:
#0 C:\laragon\www\helpgent\wp-content\plugins\helpgent-two-pro\app\Lib\Google\Drive.php(290): Exception->__construct('cURL error 28: ...', 'http_request_fa...')
#1 C:\laragon\www\helpgent\wp-content\plugins\helpgent-two-pro\app\MediaDrivers\GoogleDrive.php(84): HelpGentPro\App\Lib\Google\Drive->upload_chunk(Object(HelpGent\App\DTO\ChunkFileDTO), 'ADPycdv-iNCRV37...')
#2 C:\laragon\www\helpgent\wp-content\plugins\helpgent-two\app\Repositories\AttachmentRepository.php(201): HelpGentPro\App\MediaDrivers\GoogleDrive->upload_chunk(Object(HelpGent\App\DTO\ChunkFileDTO), Object(HelpGent\App\DTO\AttachmentUploadSessionDTO))
#3 C:\laragon\www\helpgent\wp-content\plugins\helpgent-two\app\Repositories\AttachmentRepository.php(164): HelpGent\App\Repositories\AttachmentRepository->upload_chunk(Object(HelpGent in C:\laragon\www\helpgent\wp-content\plugins\helpgent-two-pro\app\Lib\Google\Drive.php on line 290
[02-Aug-2023 05:11:54 UTC] Array
(
[headers] => WpOrg\Requests\Utility\CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[content-type] => text/plain; charset=utf-8
[x-guploader-uploadid] => ADPycdv-iNCRV37iAhFVUOD1pRLrnCuVzMDgao2o-VdcfuFj-MyGG8UClycAZbyAOtybMUNm3sdqcRyfv9hSG3D-rZ-jLJ1q8dTj
[content-length] => 262
[date] => Wed, 02 Aug 2023 05:11:53 GMT
[server] => UploadServer
[alt-svc] => h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
)
)
[body] => Invalid request. The number of bytes uploaded is required to be equal or greater than 262144, except for the final request (it's recommended to be the exact multiple of 262144). The received request contained 298998 bytes, which does not meet this requirement.
[response] => Array
(
[code] => 400
[message] => Bad Request
)
[cookies] => Array
(
)
[filename] =>
[http_response] => WP_HTTP_Requests_Response Object
(
[response:protected] => WpOrg\Requests\Response Object
(
[body] => Invalid request. The number of bytes uploaded is required to be equal or greater than 262144, except for the final request (it's recommended to be the exact multiple of 262144). The received request contained 298998 bytes, which does not meet this requirement.
[raw] => HTTP/1.1 400 Bad Request
Content-Type: text/plain; charset=utf-8
X-GUploader-UploadID: ADPycdv-iNCRV37iAhFVUOD1pRLrnCuVzMDgao2o-VdcfuFj-MyGG8UClycAZbyAOtybMUNm3sdqcRyfv9hSG3D-rZ-jLJ1q8dTj
Content-Length: 262
Date: Wed, 02 Aug 2023 05:11:53 GMT
Server: UploadServer
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
Connection: close
Invalid request. The number of bytes uploaded is required to be equal or greater than 262144, except for the final request (it's recommended to be the exact multiple of 262144). The received request contained 298998 bytes, which does not meet this requirement.
[headers] => WpOrg\Requests\Response\Headers Object
(
[data:protected] => Array
(
[content-type] => Array
(
[0] => text/plain; charset=utf-8
)
[x-guploader-uploadid] => Array
(
[0] => ADPycdv-iNCRV37iAhFVUOD1pRLrnCuVzMDgao2o-VdcfuFj-MyGG8UClycAZbyAOtybMUNm3sdqcRyfv9hSG3D-rZ-jLJ1q8dTj
)
[content-length] => Array
(
[0] => 262
)
[date] => Array
(
[0] => Wed, 02 Aug 2023 05:11:53 GMT
)
[server] => Array
(
[0] => UploadServer
)
[alt-svc] => Array
(
[0] => h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
)
)
)
[status_code] => 400
[protocol_version] => 1.1
[success] =>
[redirects] => 0
[url] => https://www.googleapis.com/upload/drive/v3/files?uploadType=resumable&upload_id=ADPycdv-iNCRV37iAhFVUOD1pRLrnCuVzMDgao2o-VdcfuFj-MyGG8UClycAZbyAOtybMUNm3sdqcRyfv9hSG3D-rZ-jLJ1q8dTj
[history] => Array
(
)
[cookies] => WpOrg\Requests\Cookie\Jar Object
(
[cookies:protected] => Array
(
)
)
)
[filename:protected] =>
[data] =>
[headers] =>
[status] =>
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment