Skip to content
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

appendToStream with expectedRevision -1 causes cryptic error #348

Open
rmp613 opened this issue Nov 7, 2023 · 5 comments
Open

appendToStream with expectedRevision -1 causes cryptic error #348

rmp613 opened this issue Nov 7, 2023 · 5 comments
Labels
kind/bug Issues which are a software defect

Comments

@rmp613
Copy link

rmp613 commented Nov 7, 2023

Describe the bug
Very similar to
EventStore/EventStore#2781

I get
Request message serialization failure: Cannot read property 'lo' of null
when attempting to appendToStream with -1 expectedRevision
To Reproduce
Steps to reproduce the behavior:

  1. call appendToStream with -1 expectedRevision

Expected behavior
A less cryptic error so the user can fix the issue

Actual behavior
A cryptic grpc error is thrown

Config/Logs/Screenshots

EventStore details

  • EventStore server version:
    23.10.0
  • Operating system:
    linux
  • EventStore client version (if applicable):
    6.0.0
    Additional context

DB-492

@rmp613 rmp613 added the kind/bug Issues which are a software defect label Nov 7, 2023
@rmp613
Copy link
Author

rmp613 commented Nov 7, 2023 via email

@alexeyzimarev alexeyzimarev transferred this issue from EventStore/EventStore Nov 14, 2023
@alexeyzimarev
Copy link
Member

The current version of NodeJS client doesn't allow setting -1 as the expected revision, cloud you clarify what you are actually doing? Also, server version 6.0.0 is confusing as it doesn't exist.

@riordanpawley
Copy link

The current version of NodeJS client doesn't allow setting -1 as the expected revision, cloud you clarify what you are actually doing? Also, server version 6.0.0 is confusing as it doesn't exist.

Thanks for moving it, I forgot sorry.
Client version 6.0.0. Server version 23.10.0
I understand -1 is not a valid input but the types allow it and the error thrown is very hard to debug as an end user of the library.

@w1am
Copy link
Collaborator

w1am commented Nov 15, 2023

@riordanpawley This issue is already being addressed in this pull request #349

@riordanpawley
Copy link

@riordanpawley This issue is already being addressed in this pull request #349

OK Happy to close then :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Issues which are a software defect
Projects
None yet
Development

No branches or pull requests

4 participants