google / google/webrisk

JSON message is not unmarshalling correctly into protobuf message

Open
#16 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
87
Forks
41
Avg merge
19d 17h
Merged PRs (30d)
1

Description

It seems that when the database is updated and receives a new version token the unmarshalling is not done correctly.

Expected: Cg0IARAGGAEiAzAwMTABEP/7BhoCGAnR73ir
unmarshalled: [10 13 8 1 16 6 24 1 34 3 48 48 49 48 1 16 255 251 6 26 2 24 9 209 239 120 171]

This could be an issue with https://godoc.org/github.com/golang/protobuf/jsonpb itself.

I created the branch `json-marshalling-bug` for future investigation, meanwhile i am going to revert the changes that introduced this bug.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.