-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Unable to find an appropriate decode scheme #1049
Comments
Errors like these usually happen when the binary data becomes corrupted through a string conversion, like forcing it into UTF8 encoding. There is this wiki entry that might help. If a conversion to a string cannot be avoided, there's this base64 utility (available as |
Is it possible to use base64 utility with typescript definitions when generating static code with pbjs and pbts. |
There is no direct base64 implementation on top of the messages, but there is this utility exposed as |
okay. |
protobuf.js version: 6.8.3
I updated from protobuf 4.x to 6.8.3. I made changes according to the updated API.
But, there is one error I am not able to get pass by, is to how to properly decode this type of serialized
buffer.
I have tried various combinations of
Uint8Array.from
,atob
etc. But to no success, I always get an error of the formError: invalid wire type 6 at offset 3
.Any help would be appreciated.
The text was updated successfully, but these errors were encountered: