Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Received message larger than max #10

Open
jbrozena22 opened this issue Oct 18, 2018 · 1 comment
Open

Received message larger than max #10

jbrozena22 opened this issue Oct 18, 2018 · 1 comment

Comments

@jbrozena22
Copy link

Thank you for this fantastic library. It works great when my returned prediction is small, but I have a model that returns significantly larger outputs. When I try to return them I get:

<_Rendezvous of RPC that terminated with:
status = StatusCode.RESOURCE_EXHAUSTED
details = "Received message larger than max (52383837 vs. 4194304)"
debug_error_string = "{"created":"@1539882985.938759395","description":"Error received from peer","file":"src/core/lib/surface/call.cc","file_line":1099,"grpc_message":"Received message larger than max (52383837 vs. 4194304)","grpc_status":8}"

Looking around this is a common error message seemingly related to the default size set in grpc. I tried naively just bumping the grpc version to 1.15.0 (latest) but that didn't have an effect. I also tried overriding the grpc function as suggested here but still no dice: grpc/grpc#13497 (comment)

You've thought more about this GRPC stuff than I have so figured it would be worth seeing if you'd run into this or how you had resolved it if so. Thanks!

@stianlp
Copy link
Contributor

stianlp commented Oct 27, 2018

Remember running into a similar issue when hosting models on Google Cloud Platform ML Engine.

I think the easiest way to get around this is to trim your model's response size if possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants