diff --git a/graph-gateway/src/chains/ethereum.rs b/graph-gateway/src/chains/ethereum.rs index 2e4c125f..2de4110a 100644 --- a/graph-gateway/src/chains/ethereum.rs +++ b/graph-gateway/src/chains/ethereum.rs @@ -118,7 +118,8 @@ impl Client { .post(rpc.0) .json(&body) .send() - .await? + .await + .and_then(|response| response.error_for_status())? .json::>() .await .map(|APIResult { result }| BlockHead {