Context deadline exception with stream from gRPC

55 views
Skip to first unread message

Tony B

unread,
Aug 25, 2025, 11:50:38 PM (12 days ago) Aug 25
to grpc.io
Hi team,

When I am working with stream in gRPC, I am able to test successfully to get stream message. However, when integrating to receive response from gRPC to RestAPI, I have an error is related to deadline exception due to the stream message is large.

I already tried to adjust multiple ways like set context with timeout up to 2 minute. However, it does not work with large message.

Do does team have any suggestion for me to handle about that issue. 

Thanks in advances !

Tony

Kannan Jayaprakasam

unread,
Aug 26, 2025, 7:30:33 AM (12 days ago) Aug 26
to Tony B, grpc.io
Is the RPC not waiting for the 2 minutes that you set? Are you using some gRPC to REST transcoder and are trying the setting on this gateway?

--
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 visit https://groups.google.com/d/msgid/grpc-io/ea950348-d9db-42eb-adfb-2c2d20d2513en%40googlegroups.com.

Tony B

unread,
Aug 26, 2025, 9:59:19 PM (12 days ago) Aug 26
to Kannan Jayaprakasam, grpc.io
Hi team,

I just double checked and looked overall again in our application, the root cause is related to my missing look at the config file.
I have not setted timeout on the RestAPI side, that is the reason why when receiving the large stream message it was a deadline exception.

Thanks to your team.

Tony.
Reply all
Reply to author
Forward
0 new messages