Skip to content

Getting Error: Assertion failed in reactjs request #1436

Discussion options

You must be logged in to vote

(Will convert this to be a discussion since this is not a bug with grpc-web itself but rather an error thrown from google-protobuf.)


@rizdaputra Hi!

It looks like from the error stack trace that the error was thrown from here:

https://github.com/protocolbuffers/protobuf-javascript/blob/5d939dbc8fd5245c4316d52c203a1bff24bac5c4/binary/writer.js#L802C29-L809

Where it's complaining the enum values are illegal:

  jspb.asserts.assert(
      (value >= -jspb.BinaryConstants.TWO_TO_31) &&
      (value < jspb.BinaryConstants.TWO_TO_31));

I see that you have 2 enums setter calls above, on setOperationType() and setType().

Could you double check the value being set on those 2 fields? Maybe they are …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@rizdaputra
Comment options

@rizdaputra
Comment options

@sampajano
Comment options

Answer selected by rizdaputra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
Converted from issue

This discussion was converted from issue #1435 on June 18, 2024 20:19.