Skip to content

Commit

Permalink
500 error patch
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Feb 6, 2024
1 parent f8a61cd commit 965cb77
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sdk/src/client/node_api/core/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ impl Client {
futures::future::join_all(output_ids.iter().map(|id| self.get_output_with_metadata(id)))
.await
.into_iter()
.filter(|res| !matches!(res, Err(Error::Node(NodeApiError::NotFound(_)))))
.filter(|res| {
!matches!(
res,
Err(Error::Node(NodeApiError::NotFound(_))) | Err(Error::Node(NodeApiError::ResponseError { .. }))
)
})
.collect()
}
}

0 comments on commit 965cb77

Please sign in to comment.