status-im / nimbus-eth2

Nim implementation of the Ethereum Beacon Chain
https://nimbus.guide
Other
543 stars 233 forks source link

blob_sidecars with empty response #6493

Closed dwampa closed 2 months ago

dwampa commented 3 months ago

Describe the bug eth/v1/beacon/blob_sidecars request of an unexisting blob will answer with an empty array.

To Reproduce Steps to reproduce the behavior:

curl -X 'GET' \
 'https://BEACON_ENDPOINT/eth/v1/beacon/blob_sidecars/5644698?indices=11' \
 -H 'accept: application/json'

Response:

{"data":[]}

Additional context Please add the error message instead of an empty array.

tersec commented 3 months ago

Where does https://ethereum.github.io/beacon-APIs/#/Beacon/getBlobSidecars specify the behavior/response you're asking for?

dwampa commented 3 months ago

@tersec You are correct, it is not there. I guess this should be a feature request rather than a bug then.

tersec commented 3 months ago

This "feature request" would be incompatible with the existing beacon API.

tersec commented 2 months ago

If you'd like, you can file an issue with https://github.com/ethereum/beacon-APIs/issues but this is an implementation of a specific and specified API.