Skip to content

Commit 92f12db

Browse files
committed
fix: improve error for insufficient blob data columns
Updates the HTTP API error when the node cannot reconstruct blobs due to "Insufficient data columns". Changes the response from 500 Internal Server Error to 400 Bad Request and adds a hint to run with --supernode or --semi-supernode. Closes #8569
1 parent afa6457 commit 92f12db

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

beacon_node/http_api/src/block_id.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,9 @@ impl BlockId {
483483
},
484484
)
485485
} else {
486-
Err(warp_utils::reject::custom_server_error(format!(
487-
"Insufficient data columns to reconstruct blobs: required {num_required_columns}, but only {num_found_column_keys} were found."
486+
Err(warp_utils::reject::custom_bad_request(format!(
487+
"Insufficient data columns to reconstruct blobs: required {num_required_columns}, but only {num_found_column_keys} were found. \
488+
You may need to run the beacon node with --supernode or --semi-supernode."
488489
)))
489490
}
490491
}

0 commit comments

Comments
 (0)