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

Try to serialize, then deserialize - got error #54

Open
alexk984 opened this issue Aug 25, 2015 · 3 comments
Open

Try to serialize, then deserialize - got error #54

alexk984 opened this issue Aug 25, 2015 · 3 comments

Comments

@alexk984
Copy link

Always have a error

Uncaught exception 'ProtocolBuffersInvalidProtocolBufferException' with message 'passed variable contains malformed byte sequence. or it contains unsupported tag

Tried to test serialize/parse

            $request = new BidRequest();
            $request->setId('111');
            $code = $request->serializeToString();
            $response = $request->parseFromString($this->data);

And still not working, why?

@alexk984
Copy link
Author

When I add this string

  optional string url = 11;

It becomes crash. What is wrong whith this string? There is some restriction on file lenght?

@dcelasun
Copy link
Contributor

Can you post the .proto file and the generated class?

@alexk984
Copy link
Author

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

2 participants