Coder Social home page Coder Social logo

Application aborted about grpc-node HOT 4 CLOSED

fcrisciani avatar fcrisciani commented on September 18, 2024 2
Application aborted

from grpc-node.

Comments (4)

hhamilto avatar hhamilto commented on September 18, 2024 1

I'm having the same issue -- had to downgrade to 1.6.6

from grpc-node.

murgatroid99 avatar murgatroid99 commented on September 18, 2024 1

Thank you for bringing this to our attention. That assertion itself is incorrect due to a recent change that makes waitForReady work as intended. We will publish a patch release soon with the fix.

from grpc-node.

fcrisciani avatar fcrisciani commented on September 18, 2024

@hhamilto do you use a similar approach to guarantee that the connection is established before issueing an RPC call?
I have a series of microservices in node all interacting with grpc. I did not find a good way to track the connection status and restart it if drops, so I was opting for triggering the waitForReady before each call. Do you use any other approach? (I was also trying to inspect the channel connection status and eventually create a new client but anyway you should call the wait for ready on that one too)

from grpc-node.

hhamilto avatar hhamilto commented on September 18, 2024

I'm not calling client.waitForReady directly in my code, but I am calling grpc.waitForClientReady in different places.

I haven't come up with anything I consider a completely sure way of restarting the connection if it drops, but I do listen for the error event on the connection and restart if the code is 14:

		connection.on('error', function(err){
			if (err.code === 14) {
			    // ... reconnect code

from grpc-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.