Questions tagged [protobufjs]

protobuf.js is a pure JavaScript implementation of the Google's Protocol Buffers.

protobuf.js is a Protocol Buffers implementation on top of bytebuffer.js including a .proto parser, reflection, message class building and simple encoding and decoding in plain JavaScript. There is no compilation step required, it's super easy to use and it works out of the box on .proto files.

34 questions
1
vote
2 answers

Exception 'illegal buffer' thrown in protobufjs

I am using protobufjs to manage my data over an API. It works perfectly most of the time but in one instance of a message I get an 'illegal buffer' exception. This is thrown by some internal code in the library. I am pasting here the Chrome debugger…
Claude
  • 51
  • 2
  • 7
1
vote
1 answer

Protobuf.js: the Writer doesn't seems to `finish`

I'm encountering a weird bug while using Protobuf in my TypeScript frontend. I'm using Axios to make calls to my REST API and the protobuf.js package to handle Protobuf in my frontend. I'm new to protobuf, and the issue may stem from my lack of…
Bastian Nanchen
  • 672
  • 1
  • 13
  • 24
1
vote
0 answers

protobuf.js how to generate static es6 modules for browsers?

My example.html contains ...