-
-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better error handling for no builder bids on /eth/v1/builder/header #5826
Comments
bump
|
Doesn't fully address this but it gives us more control on when to parse the request body ( |
Current solution I have implemented is to throw an error explicitly if we don't received a bid lodestar/packages/beacon-node/src/execution/builder/http.ts Lines 108 to 112 in fd482c2
In |
Alternative would be to not throw an error and propagate |
Generally when I see |
Describe the bug
Currently, we always assume that we receive a JSON body from the /eth/v1/builder/header API. When using
--builder
and mev-boost returnsno bids received
, we get a 204 (no content) response and it triggersUnexpected end of JSON input
on Lodestar.Expected behavior
We should have a more graceful response to no bids. It should not show up as an
error:
and should likely be downgraded to eitherwarn:
or lower in accordance with new error logging policy #5359 implemented by #5299. The stacktrace is probably better moved todebug
orverbose
as it should feel less intrusive to not receive bids or not meet themin-bid
threshold.Steps to reproduce
No response
Additional context
Example (beacon-node):
Example mev-boost:
Operating system
Linux
Lodestar version or commit hash
v1.9.2
The text was updated successfully, but these errors were encountered: