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 dfe1d84 commit 727262eCopy full SHA for 727262e
app/Request/GuzzleAdapter.php
@@ -68,6 +68,9 @@ public static function RequestHandleException($exception)
68
], 408, 'failed');
69
} else {
70
$error = json_decode($exception->getResponse()->getBody()->getContents(), true);
71
+ if (empty($error['error'])) {
72
+ $error['message'] = 'Request Failed';
73
+ }
74
return ResponseFormatter::formatResponse([
75
'error' => $error['message']
76
], 400, 'failed');
0 commit comments