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

Cannot read properties of undefined (reading 'startConnecting') #2537

Closed
akosyakov opened this issue Aug 4, 2023 · 3 comments
Closed

Cannot read properties of undefined (reading 'startConnecting') #2537

akosyakov opened this issue Aug 4, 2023 · 3 comments

Comments

@akosyakov
Copy link

After upgrading 1.8.17 we see lot of

TypeError: Cannot read properties of undefined (reading 'startConnecting')
    at /app/node_modules/@grpc/grpc-js/src/load-balancer-pick-first.ts:308:43
    at processTicksAndRejections (node:internal/process/task_queues:78:11)

We tried to downgrade a bit to 1.8.8 but it still happens from time to time.

@murgatroid99
Copy link
Member

Can you check if the same thing happens with version 1.9.0?

@svenefftinge
Copy link

I believe it can potentially still happen as the code is executed on next tick and there's a on of other code pathes potentially being executed that would potentially change/clear the children property.
So I'd say either capturing the children array in the lambda or checking for undefined would be important.

@murgatroid99
Copy link
Member

The fix for this has been published in version 1.9.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants