You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Noticed that Prysm BN does not check the content type of the request body and just tries to deserialize it, causing strange errors.
E.g. Error on Lodestar when trying to call getAttesterDuties with SSZ request body
[vc-09-geth-prysm-lodestar] May-28 22:38:48.648[] error: Failed to download attester duties epoch=0 - getAttesterDuties failed with status 400: Could not decode request body: invalid character '>' looking for beginning of value
[vc-09-geth-prysm-lodestar] Error: getAttesterDuties failed with status 400: Could not decode request body: invalid character '>' looking for beginning of value
As per spec, this route does not require to support SSZ request bodies and by default Lodestar will be using JSON but it would still be nice if Prysm could return a 415 error as this would allow to gradually support SSZ for more routes as the client can retry the request with JSON body and cache for this route that SSZ is not supported, only sending JSON in subsequent requests.
Has this worked before in a previous version?
Likely not
🔬 Minimal Reproduction
I've been using Kurtosis to run the tests (with custom lodestar image)
Describe the bug
Noticed that Prysm BN does not check the content type of the request body and just tries to deserialize it, causing strange errors.
E.g. Error on Lodestar when trying to call
getAttesterDuties
with SSZ request bodyAs per spec, this route does not require to support SSZ request bodies and by default Lodestar will be using JSON but it would still be nice if Prysm could return a 415 error as this would allow to gradually support SSZ for more routes as the client can retry the request with JSON body and cache for this route that SSZ is not supported, only sending JSON in subsequent requests.
Has this worked before in a previous version?
Likely not
🔬 Minimal Reproduction
I've been using Kurtosis to run the tests (with custom lodestar image)
Error
Error itself is not really relevant for this issue
Platform(s)
Linux (x86)
What version of Prysm are you running? (Which release)
gcr.io/prysmaticlabs/prysm/beacon-chain:latest
(v5.0.3)Anything else relevant (validator index / public key)?
No response
The text was updated successfully, but these errors were encountered: