Skip to content

Commit

Permalink
[faucet] request status should return bad request for invalid UUIDs (#…
Browse files Browse the repository at this point in the history
…19662)

## Description 

faucet
changes the request status for status queries when UUIDs are not parsable.

## Test plan 

How did you test the new or updated feature?

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
- [ ] REST API:
  • Loading branch information
jordanjennings-mysten authored Oct 3, 2024
1 parent 5ee7eb5 commit dfd2b94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/sui-faucet/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ async fn request_status(
}
}
Err(e) => (
StatusCode::INTERNAL_SERVER_ERROR,
StatusCode::BAD_REQUEST,
Json(BatchStatusFaucetResponse::from(FaucetError::Internal(
e.to_string(),
))),
Expand Down

0 comments on commit dfd2b94

Please sign in to comment.