You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Fatal error: Uncaught TypeError: Imgur\HttpClient\HttpClient::parseResponse(): Return value must be of type array, bool returned in /www/htdocs/w019a155/mysite/imgur/vendor/j0k3r/php-imgur-api-client/lib/Imgur/HttpClient/HttpClient.php:116
Stack trace:
#0 /www/htdocs/w019a155/mysite/imgur/vendor/j0k3r/php-imgur-api-client/lib/Imgur/Api/AbstractApi.php(58): Imgur\HttpClient\HttpClient->parseResponse(Object(GuzzleHttp\Psr7\Response)) #1 /www/htdocs/w019a155/mysite/imgur/vendor/j0k3r/php-imgur-api-client/lib/Imgur/Api/Gallery.php(231): Imgur\Api\AbstractApi->post('gallery/1tGNf19', Array) #2 /www/htdocs/w019a155/mysite/imgur/authenticationCallBack.php(50): Imgur\Api\Gallery->submitToGallery('1tGNf19', Array) #3 {main}
thrown in /www/htdocs/w019a155/mysite/imgur/vendor/j0k3r/php-imgur-api-client/lib/Imgur/HttpClient/HttpClient.php on line 116
Do you have an explanation?
The text was updated successfully, but these errors were encountered:
Maybe because the data attribute of the response is not always an array but can be null, boolean or integer and the library doesn't seems handle it properly: https://api.imgur.com/models/basic
Try to dump the $responseBody variable here to see what you get
Hi,
everything works fine but unfortunatly I get an error when using this function:
$client->api('gallery')->submitToGallery($pic['id'],$data);
Error:
Fatal error: Uncaught TypeError: Imgur\HttpClient\HttpClient::parseResponse(): Return value must be of type array, bool returned in /www/htdocs/w019a155/mysite/imgur/vendor/j0k3r/php-imgur-api-client/lib/Imgur/HttpClient/HttpClient.php:116
Stack trace:
#0 /www/htdocs/w019a155/mysite/imgur/vendor/j0k3r/php-imgur-api-client/lib/Imgur/Api/AbstractApi.php(58): Imgur\HttpClient\HttpClient->parseResponse(Object(GuzzleHttp\Psr7\Response))
#1 /www/htdocs/w019a155/mysite/imgur/vendor/j0k3r/php-imgur-api-client/lib/Imgur/Api/Gallery.php(231): Imgur\Api\AbstractApi->post('gallery/1tGNf19', Array)
#2 /www/htdocs/w019a155/mysite/imgur/authenticationCallBack.php(50): Imgur\Api\Gallery->submitToGallery('1tGNf19', Array)
#3 {main}
thrown in /www/htdocs/w019a155/mysite/imgur/vendor/j0k3r/php-imgur-api-client/lib/Imgur/HttpClient/HttpClient.php on line 116
Do you have an explanation?
The text was updated successfully, but these errors were encountered: