Received message larger than max error

1,842 views
Skip to first unread message

Chandra Shekhar

unread,
Aug 10, 2023, 12:27:02 PM8/10/23
to grpc.io

I am facing this issue. The message size I am pushing to is bigger (13417774 vs. 4194304).

Message=<_InactiveRpcError of RPC that terminated with:
status = StatusCode.RESOURCE_EXHAUSTED
details = “Received message larger than max (13417774 vs. 4194304)”
debug_error_string = "UNKNOWN:Error

push_audio_track
response = stub.PushAudio(request)
push_audio_track(a2f_url, wavarr, sample_rate, a2f_avatar_instance)

I tried fixing it by creating a grpc channel with max send/receive message length of unlimited (-1). while creating the channel.

('grpc.max_message_length', -1), ('grpc.max_send_message_length', -1), ('grpc.max_receive_message_length', -1)

But it doesnt work. I guess I need to set these values at the grpc server side as well  ? cant find where to set this inside audio2face.

Tried using push_audio_track and push_audio_track_stream as well. Error remains the same.

Any help on this would be much appreciated


Chandra Shekhar

unread,
Aug 10, 2023, 6:09:26 PM8/10/23
to grpc.io

I have fixed the issue by setting the grpc.max_message_length = -1 in stearming audioplayer server instance here

audio2face-2023.1.1\exts\omni.audio2face.player\omni\audio2face\player\scripts\streaming_server\server.py.

not sure why the grpc.sever as was intialized at 4 mb default grpc.mesage lenght. It would make it unsuitable for sending the audio data. Is there any way we can push the audio in compressed format mp3 ?

sanjay...@google.com

unread,
Aug 16, 2023, 1:23:52 PM8/16/23
to grpc.io
I think your question should be directed to the team of audio server software you are using rather than gRPC. If you think this is really a gRPC issue please provide more details.

Sanjay Pujare

unread,
Aug 17, 2023, 4:44:27 PM8/17/23
to Chandra Shekhar, grpc.io
No idea. It comes from here https://github.com/grpc/grpc/blob/master/include/grpc/impl/grpc_types.h#L181 but I don't know the source of that default. 

On Thu, Aug 17, 2023 at 1:35 PM Chandra Shekhar <chan...@gmail.com> wrote:
Thanks sanjay. You are right its more of an audio server issue than grpc. Any pointers why the channel size is set at 4 mb default ? any good optimization reasons ?
Thanks and Regards,
Shekhar


--
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/ePa4XBKbVL8/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/cfe3477e-498f-4c15-a446-2e090159d213n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages