We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4e03fd commit 11be192Copy full SHA for 11be192
src/Parse/ParseClient.php
@@ -493,6 +493,12 @@ public static function _request(
493
}
494
495
$decoded = json_decode($response, true);
496
+
497
+ if(!isset($decoded) && $response !== '') {
498
+ throw new ParseException('Bad Request. Could not decode Response', -1);
499
500
+ }
501
502
if (isset($decoded['error'])) {
503
// check to convert error to a string, if an array
504
// used to handle an Array 'error' from back4app.com
0 commit comments