-
Notifications
You must be signed in to change notification settings - Fork 142
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
Invalid field number 0 when decoding binary data #333
Comments
Thanks for the report! Can you provide a minimal set of steps to reproduce the error? The Protobuf schema helps, but I'd like to have a small script that reproduces this 🙃 |
sorry for the late response, was busy with some things. All I did was run I recently just reinstalled both Erlang and Elixir and even that didn't do anything. I am on Windows but I really doubt that's is the problem. It seems like the problem is occurring on this line (Protobuf.Decoder:45-48): if field_number != 0 do
handle_field(rest, field_number, wire_type, message, props)
else
raise Protobuf.DecodeError, message: "invalid field number 0 when decoding binary data"
end |
Okay the first step here will be to see if we can reproduce this @savhappy 👍 |
I am currently trying to use Protobuf in one of my elixir projects but I keep getting this error:
I've looked everywhere for a solution but seemingly can't find one.
This is my Protobuf code:
The text was updated successfully, but these errors were encountered: