-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fix: The deadline passed to 'waitForReady' in "GrpcClient", was a millisecond gap, but the method needs a date or a TS of the deadline #148
Conversation
"waitForReady" was called with a deadline of 10000 milliseconds. But the method 'watchConnectivityState' used by 'waitForReady', wants a deadline date. cf: https://github.com/grpc/grpc-node/blob/%40grpc/grpc-js%401.9.7/packages/grpc-js/src/internal-channel.ts#L739 So this fix is to set the deadline date at now + 10s
Thanks for finding and fixing this @lsidoree. For future reference, pull requests should be made against the I can roll this fix into another patch - or if you'd like to submit a PR against |
Next time I'll read the contribution rules better, sorry! |
## [8.5.2](v8.5.1...v8.5.2) (2024-05-07) ### Bug Fixes * **zeebe:** waitForReady deadline not miliseconds, but date ([#148](#148)) ([12db206](12db206)) ### Features * **repo:** add CAMUNDA_CUSTOM_ROOT_CERT_STRING parameter ([7451a66](7451a66)), closes [#151](#151) [#150](#150) [#146](#146) [#142](#142) [#151](#151) [#150](#150) [#142](#142) [#151](#151) [#150](#150) [#142](#142) [#151](#151) [#150](#150) [#142](#142) [#151](#151) [#150](#150) [#142](#142) [#151](#151) [#150](#150) [#142](#142) ### Reverts * Revert "fix(zeebe): waitForReady deadline not miliseconds, but date (#148)" (#149) ([f8c0c7d](f8c0c7d)), closes [#148](#148) [#149](#149)
## [8.5.2](v8.5.1...v8.5.2) (2024-05-07) ### Bug Fixes * **zeebe:** waitForReady deadline not miliseconds, but date ([#148](#148)) ([12db206](12db206)) ### Features * **repo:** add CAMUNDA_CUSTOM_ROOT_CERT_STRING parameter ([7451a66](7451a66)), closes [#151](#151) [#150](#150) [#146](#146) [#142](#142) [#151](#151) [#150](#150) [#142](#142) [#151](#151) [#150](#150) [#142](#142) [#151](#151) [#150](#150) [#142](#142) [#151](#151) [#150](#150) [#142](#142) [#151](#151) [#150](#150) [#142](#142) ### Reverts * Revert "fix(zeebe): waitForReady deadline not miliseconds, but date (#148)" (#149) ([f8c0c7d](f8c0c7d)), closes [#148](#148) [#149](#149)
Thank you for finding and fixing this @lsidoree. This has been a bug in the zeebe client for the last five years. How did you find it? |
"waitForReady" was called with a deadline of 10000 milliseconds.
But the method 'watchConnectivityState' used by 'waitForReady', needs a deadline date.
cf: https://github.com/grpc/grpc-node/blob/%40grpc/grpc-js%401.9.7/packages/grpc-js/src/internal-channel.ts#L739
This caused to throw error "Deadline passed without connectivity state change" in "watchConnectivityState" every time.
So this fix is to set the deadline date at now + 10s