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 09974ab commit a742418Copy full SHA for a742418
src/Syntax/SteamApi/Client.php
@@ -199,6 +199,11 @@ protected function sendRequest(Request $request)
199
} catch (Exception $e) {
200
throw new ApiCallFailedException($e->getMessage(), $e->getCode(), $e);
201
}
202
+
203
+ // For some resources, the Steam API responds with an empty response
204
+ if (empty($result->body)) {
205
+ throw new ApiCallFailedException('API call failed due to empty response', $result->code);
206
+ }
207
208
// If all worked out, return the result
209
return $result;
0 commit comments