diff --git a/src/Syntax/SteamApi/Client.php b/src/Syntax/SteamApi/Client.php index 846ca0a..73f0ba5 100644 --- a/src/Syntax/SteamApi/Client.php +++ b/src/Syntax/SteamApi/Client.php @@ -199,6 +199,11 @@ protected function sendRequest(Request $request) } catch (Exception $e) { throw new ApiCallFailedException($e->getMessage(), $e->getCode(), $e); } + + // For some resources, the Steam API responds with an empty response + if (empty($result->body)) { + throw new ApiCallFailedException('API call failed due to empty response', $result->code); + } // If all worked out, return the result return $result;