Comments (1)
Hi Matthew,
Thanks for the issue and reproduction. Looks like filters are currently a big hole in test cases / doc comments.
In your example:
const sub = client.subscribeToAll({
filter: { filterOn: STREAM_NAME, regex: `^${stream}$` },
fromPosition: START,
})
When this is sent over GRPC you get:
streamIdentifier: { regex: '^my_stream$', prefixList: [] },
eventType: undefined,
max: 0,
count: undefined,
checkpointintervalmultiplier: 0
but max
and checkpointintervalmultiplier
both have to be non-zero. (GRPC defaults numbers to 0 when not specified).
So for the time being you can work around it by changing to:
const sub = client.subscribeToAll({
filter: { filterOn: STREAM_NAME, regex: `^${stream}$`, max: 32, checkpointintervalmul: 1 },
fromPosition: START,
})
In #127 I've reworked the code around this. The helper functions streamNameFilter
and eventTypeFilter
now provide sensible defaults and if you pass 0, it will throw an error before its sent to the server.
I've also opened an issue EventStore/EventStore#2790 to improve the error message from the server.
from eventstore-client-nodejs.
Related Issues (20)
- Is there a way how to force release all resources created by client? HOT 5
- Automatically close batch append connection
- Memory leak
- Memory leak HOT 4
- Wrong comment in readStream.d.ts HOT 1
- Memory Leak on readStream HOT 9
- Retrieving batch of events from catchup subscriptions HOT 3
- Feature Request: gRPC-web adapter. HOT 1
- Unable to Connect to Insecure Docker Compose HOT 5
- `emitEnabled` only available on projection update, not on create HOT 2
- Appending more than 100 events at once on a fresh connection fails. (Batch append?) HOT 1
- Add debug log if `serverFeatures` failed
- ServerFeatures should only assume unknown server on `UNIMPLEMENTED` error
- readUint64String is not a function HOT 4
- created is not a javascript safe integer HOT 2
- Gracefull shutdown HOT 1
- Trouble connecting to cloud cluster from AWS HOT 2
- Please ship a sourcemap HOT 2
- Trying to append an event with wrong id results in UnknownError HOT 1
- appendToStream with expectedRevision -1 causes cryptic error HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eventstore-client-nodejs.