Skip to content
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

Latest lodestar dev build is incompatible due to unexpected SSZ responses #144

Closed
pk910 opened this issue Jun 11, 2024 · 5 comments
Closed

Comments

@pk910
Copy link
Contributor

pk910 commented Jun 11, 2024

Lodestar recently introduced SSZ serialization for endpoints that do not require SSZ serialization according to spec: PR-6749

This unfortunately breaks compatibility with this library because go-eth2-client uses a generic Accept header that prefers SSZ responses for all endpoints.
In particular it breaks s.Genesis() as the response is always decoded as JSON data, which breaks with SSZ responses.
I'm pretty sure there are more endpoints with the same problem.

I think this should be fixed on go-eth2-client side, so the lib only asks for SSZ encoded data if the underlying implementation is capable of parsing the SSZ response.

@nflaig
Copy link
Contributor

nflaig commented Jun 11, 2024

Nice catch @pk910, I have not tested the branch against Vouch since I was just using Kurtosis for client interop testing. Definitely agree here that the client should only sent media types in Accept header which it can actually handle.

@mcdee
Copy link
Contributor

mcdee commented Jun 11, 2024

#145 should address this; please could you take a look to see if you're happy with this and I'll merge it?

Note that I want to add support for SSZ to all of the endpoints, so ultimately should be able to remove the flag but for a quick fix this is the easiest way to proceed.

@nflaig
Copy link
Contributor

nflaig commented Jun 11, 2024

#145 should address this; please could you take a look to see if you're happy with this and I'll merge it?

LGTM

@pk910
Copy link
Contributor Author

pk910 commented Jun 11, 2024

Looks good 👍

pk910 added a commit to ethpandaops/assertoor that referenced this issue Jun 11, 2024
@mcdee
Copy link
Contributor

mcdee commented Jun 11, 2024

v0.21.6 is now available with #145 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants