fix: prevent unhandledRejection in batchAppend#505
Open
avens19 wants to merge 1 commit into
Open
Conversation
ⓘ You've reached your Qodo monthly free-tier limit. Reviews pause until next month — upgrade your plan to continue now, or link your paid account if you already have one. |
…his code. Stack below: ``` TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator)) at ClientDuplexStreamImpl.<anonymous> (/opt/app/node_modules/.pnpm/@kurrent+kurrentdb-client@1.1.2/node_modules/@kurrent/kurrentdb-client/dist/streams/appendToStream/batchAppend.js:21:35) at ClientDuplexStreamImpl.emit (node:events:508:28) at addChunk (node:internal/streams/readable:563:12) at readableAddChunkPushObjectMode (node:internal/streams/readable:540:3) at Readable.push (node:internal/streams/readable:395:5) at Object.onReceiveMessage (/opt/app/node_modules/.pnpm/@grpc+grpc-js@1.14.3/node_modules/@grpc/grpc-js/build/src/client.js:411:24) at Object.onReceiveMessage (/opt/app/node_modules/.pnpm/@grpc+grpc-js@1.14.3/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:319:178) at /opt/app/node_modules/.pnpm/@grpc+grpc-js@1.14.3/node_modules/@grpc/grpc-js/build/src/resolving-call.js:213:39 at process.processTicksAndRejections (node:internal/process/task_queues:104:5) ```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We saw some unhandledRejections during client reconnect coming from this code. Stack below: