The same scenario happened for my use case using milvus-sdk-node, which wraps GRPC to establish a connection. GRPC node client seems not capable of handling high loads sometimes.
On Monday, May 17, 2021 at 11:02:36 PM UTC+8 octavio roscioli wrote: > Mahendra, thank you for your suggestion. Unfortunately I am already doing > what you are suggesting :/ > > One thing I did neglect to mention is that the majority of GRPC calls go > through! This error, however, occurs sporadically and during higher loads. > It occurs once per every ~1000 calls. > > On Sat, May 15, 2021 at 4:30 AM Mahendra Bagul <bagu...@gmail.com> wrote: > >> I think your server is running with certificates and client is not >> supplying the cert chain of server. >> >> From node client, you may need to do like below. >> >> >> let credentials = grpc.credentials.createSsl( >> fs.readFileSync( >> 'cert-chain-path'), >> ); >> >> grpcClient = new YourService(`IP:PORT`, credentials); >> >> On Wednesday, 12 May, 2021 at 9:50:08 pm UTC+5:30 octavio roscioli wrote: >> >>> These are my GRPC logs: >>> >>> 2021-05-07T17:53:28.248Z | channel | dns:abc.mywebsite.com:443 >>> createCall [2010] method="/Abc/RunStep", deadline=1620410308247 >>> 2021-05-07T17:53:28.248Z | call_stream | [2010] Sending metadata >>> 2021-05-07T17:53:28.248Z | call_stream | [2010] write() called with >>> message of length 336 >>> 2021-05-07T17:53:28.248Z | call_stream | [2010] end() called >>> 2021-05-07T17:53:28.248Z | call_stream | [2010] attachHttp2Stream from >>> subchannel 192.168.79.249:443 >>> 2021-05-07T17:53:28.248Z | call_stream | [2010] sending data chunk of >>> length 341 >>> 2021-05-07T17:53:28.248Z | call_stream | [2010] calling end() on HTTP/2 >>> stream >>> 2021-05-07T17:53:31.444Z | call_stream | [2010] ended with status: >>> code=14 details="Connection dropped" >>> 2021-05-07T17:53:31.444Z | call_stream | [2010] close http2 stream with >>> code 8 >>> 2021-05-07T17:53:31.481Z | call_stream | [2010] HTTP/2 stream closed >>> with code 8 >>> >>> >>> On Wednesday, May 12, 2021 at 11:44:10 AM UTC-4 octavio roscioli wrote: >>> >>>> Hi, >>>> >>>> I am running a python server and node client using GRPC. >>>> >>>> On my Node end I am getting an error >>>> >>>> Error: 14 UNAVAILABLE: Connection dropped at Object.callErrorFromStatus >>>> (/home/node/app/node_modules/@grpc/grpc-js/src/call.ts:81:24) at >>>> Object.onReceiveStatus >>>> (/home/node/app/node_modules/@grpc/grpc-js/src/client.ts:334:36) at >>>> Object.onReceiveStatus >>>> (/home/node/app/node_modules/@grpc/grpc-js/src/client-interceptors.ts:426:34) >>>> >>>> at Object.onReceiveStatus >>>> (/home/node/app/node_modules/@grpc/grpc-js/src/client-interceptors.ts:389:48) >>>> >>>> at /home/node/app/node_modules/@grpc/grpc-js/src/call-stream.ts:276:24 at >>>> processTicksAndRejections (internal/process/task_queues.js:79:11) >>>> >>>> How can I figure out what is dropping the connection? Is it client or >>>> server side that is dropping the connection? >>>> >>>> I see the source of this error message here >>>> <https://github.com/grpc/grpc-node/blob/bf2e5cb1dd25e43f53605d8de2b8e082072ec23e/packages/grpc-js/src/call-stream.ts#L251>. >>>> >>>> But not sure what in fact is triggering it? >>>> >>>> My node client is @grpc/grp...@1.3.0. >>>> >>>> Regards, >>>> - Octavio >>>> >>> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "grpc.io" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/grpc-io/xTJ8pUe9F_E/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> grpc-io+u...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/grpc-io/ecd22198-5250-4c6b-ada9-c4ff8d951074n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/grpc-io/ecd22198-5250-4c6b-ada9-c4ff8d951074n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/26603c1d-9e37-44c4-9861-6123cc057e9en%40googlegroups.com.