Git Product home page Git Product logo

Comments (9)

tylertreat avatar tylertreat commented on June 23, 2024 3

Btw we are planning to replace Protocol Buffers with Flatbuffers, so maybe this issue will go away with that. liftbridge-io/liftbridge-api#8

from node-liftbridge.

digitalsanity avatar digitalsanity commented on June 23, 2024 1

@paambaati
Can you confirm that it runs correctly (npm run debug) if you manually add the final "" arg to the _pb.js file generated as in my example below? I think it is working but the debug app isn't exiting -- just hanging at the end?

proto.proto.Message.deserializeBinaryFromReader = function(msg, reader) {
// ..
   case 7:
      var value = msg.getHeadersMap();
      reader.readMessage(value, function(message, reader) {
        // NOTICE THE NUMBER OF ARGUMENTS HERE -->>
        jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readBytes, null, "", "");
      });
      break;
// ...
}

from node-liftbridge.

paambaati avatar paambaati commented on June 23, 2024 1

@zag2art @digitalsanity Hey Iโ€™m terribly sorry folks, but I plan to resume work here only once liftbridge-io/liftbridge-api#8 lands. It anyways requires changing a lot of the core stuff, so Iโ€™d rather wait for it than spending more time with Protobuf errors.

from node-liftbridge.

paambaati avatar paambaati commented on June 23, 2024

@akoenig It is a known issue, and hence the note about the project being under development.

I've spent considerable time tracing the issue, and you can see the issues I've reported โ€”

  1. liftbridge-io/go-liftbridge#11 (comment)
  2. grpc/grpc-node#1022
  3. protobufjs/protobuf.js#1293
  4. protocolbuffers/protobuf-javascript#43

tl;dr

protocolbuffers/protobuf-javascript#43 needs to be fixed before this library can work, but I've been unable to come up with a fix for it because - a) I'm unfamiliar with the protobuf codebase and b) The maintainers haven't responded to the issue yet.

from node-liftbridge.

paambaati avatar paambaati commented on June 23, 2024

@tylertreat Oh wow, thatโ€™ll be great! Although Flatbuffers is once again a Google project and support has been abysmal so far on even widely reported issues. Hopefully the situation is better for Flatbuffers; Iโ€™ll start looking at it.

from node-liftbridge.

llchan avatar llchan commented on June 23, 2024

In my experience Flatbuffers folks have generally been pretty responsive, esp compared to the larger projects like protobuf/bazel/TF/etc. If there's a real bug I think they'd be more than willing to work on solving it. That said, I don't know what the nodejs support looks like (I'm most familiar with the C++/Go interfaces).

from node-liftbridge.

paambaati avatar paambaati commented on June 23, 2024

@llchan Thanks for chiming in!

I don't know what the nodejs support looks like

This is exactly what Iโ€™m worried about.

from node-liftbridge.

minicuper avatar minicuper commented on June 23, 2024

I get this one

Error: Unknown base64 encoding at char: {
at c (.../nats/node_modules/google-protobuf/google-protobuf.js:186:210)
at Object.goog.crypt.base64.decodeStringInternal_ (.../nats/node_modules/google-protobuf/google-protobuf.js:186:312)
at Object.goog.crypt.base64.decodeStringToUint8Array (.../nats/node_modules/google-protobuf/google-protobuf.js:185:385)
at Function.jspb.Message.bytesAsU8 (.../nats/node_modules/google-protobuf/google-protobuf.js:200:385)

from node-liftbridge.

paambaati avatar paambaati commented on June 23, 2024

@zag2art @digitalsanity protobufjs/protobuf.js#1348 should hopefully fix this issue.

Also, I recently learnt that Liftbridge v1.0.0 (expected to ship in March) is sticking to gRPC for now.

from node-liftbridge.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.