Multiple async connections in nodejs gRPC

65 views
Skip to first unread message

0xvoid

unread,
Apr 2, 2023, 8:32:11 AM4/2/23
to grpc.io
when sending one request the gRPC server from a rest api (that acts as a gRPC client), the server returns it successfully, but when sending multiple requests at the same time the server returns the following error:
FetchError: request to "api/pay" failed, reason: getaddrinfo EAI_AGAIN "api" at ClientRequest.<anonymous> (file://node_modules/node-fetch/src/index.js:108:11) at ClientRequest.emit (node:events:539:35) at TLSSocket.socketErrorListener (node:_http_client:454:9) at TLSSocket.emit (node:events:527:28) at emitErrorNT (node:internal/streams/destroy:157:8) at emitErrorCloseNT (node:internal/streams/destroy:122:3) at processTicksAndRejections (node:internal/process/task_queues:83:21) { type: 'system', errno: 'EAI_AGAIN', code: 'EAI_AGAIN', erroredSysCall: 'getaddrinfo' }
How can I solve this and make multiple calls to server without failing?

Michael Lumish

unread,
Apr 4, 2023, 1:40:05 PM4/4/23
to 0xvoid, grpc.io
This is a DNS error that is occurring when making an HTTP request. gRPC is not involved here.

--
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+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/f5fe572c-40bf-4d37-9f0a-46d4de4ec3c0n%40googlegroups.com.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages