-
Notifications
You must be signed in to change notification settings - Fork 49
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
AssertionError: Failure: Type not convertible to Uint8Array. #73
Comments
@marcoreni can you tell me the npm version of your build? |
@aricart I'm running 0.0.28 . If this has already been solved by more recent releases we can safely close this, sorry for the confusion. |
Excellent! |
hi @marcoreni - could you please add a current stack trace that matches the your current npm/master? - I take it that your exception is failing here: var cr = proto.CloseResponse.deserializeBinary(Buffer.from(msgOrError, 'binary').toByteArray()); Also can you tell me:
Thanks, /a |
…ome protobuf users when deserializing a protobuf from a Buffer (AssertionError: Failure: Type not convertible to Uint8Array). The fix is exposed in https://github.com/google/protobuf/issues/1319#issuecomment-286542948. The opt-in fix requires a new client property called `protobufFix` to be set to `true`.
Just doing a local test that simulates the serialization/deserialization:
I don't reproduce any errors. Because the error you are experiencing is a flapper, I am willing to try an opt-in fix where you set an option
Can you please try to reproduce using the branch? |
…ome protobuf users when deserializing a protobuf from a Buffer (AssertionError: Failure: Type not convertible to Uint8Array). The fix is exposed in https://github.com/google/protobuf/issues/1319#issuecomment-286542948. The opt-in fix requires a new client property called `protobufFix` to be set to `true`.
…ome protobuf users when deserializing a protobuf from a Buffer (AssertionError: Failure: Type not convertible to Uint8Array). The fix is exposed in https://github.com/google/protobuf/issues/1319#issuecomment-286542948. The opt-in fix requires a new client property called `protobufFix` to be set to `true`.
…ome protobuf users when deserializing a protobuf from a Buffer (AssertionError: Failure: Type not convertible to Uint8Array). The fix is exposed in https://github.com/google/protobuf/issues/1319#issuecomment-286542948. The opt-in fix requires a new client property called `protobufFix` to be set to `true`.
…ome protobuf users when deserializing a protobuf from a Buffer (AssertionError: Failure: Type not convertible to Uint8Array). The fix is exposed in https://github.com/google/protobuf/issues/1319#issuecomment-286542948. The opt-in fix requires a new client property called `protobufFix` to be set to `true`.
…ome protobuf users when deserializing a protobuf from a Buffer (AssertionError: Failure: Type not convertible to Uint8Array). The fix is exposed in https://github.com/google/protobuf/issues/1319#issuecomment-286542948. The opt-in fix requires a new client property called `protobufFix` to be set to `true`.
…ome protobuf users when deserializing a protobuf from a Buffer (AssertionError: Failure: Type not convertible to Uint8Array). The fix is exposed in https://github.com/google/protobuf/issues/1319#issuecomment-286542948. The opt-in fix requires a new client property called `protobufFix` to be set to `true`.
…ome protobuf users when deserializing a protobuf from a Buffer (AssertionError: Failure: Type not convertible to Uint8Array). The fix is exposed in https://github.com/google/protobuf/issues/1319#issuecomment-286542948. The opt-in fix requires a new client property called `protobufFix` to be set to `true`.
Stan is a node library, there's no websocket support. |
Hello,
I'm receiving the following error while closing a connection.
I'm still investigating the root cause, but I tried to debug this specific stack and it seems that https://github.com/google/protobuf/issues/1319#issuecomment-286542948 solves the issue
The text was updated successfully, but these errors were encountered: