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

io.dapr.exceptions.DaprException: RESOURCE_EXHAUSTED: Received message larger than max (5759620 vs. 4194304) #781

Open
tiankanghello opened this issue Sep 15, 2022 · 12 comments
Labels

Comments

@tiankanghello
Copy link

tiankanghello commented Sep 15, 2022

When I came across this problem. What should I do to be normal io.dapr.exceptions.DaprException: RESOURCE_EXHAUSTED: Received message larger than max (5759620 vs. 4194304)

@tiankanghello tiankanghello added the kind/bug Something isn't working label Sep 15, 2022
@pravinpushkar
Copy link
Contributor

@tiankanghello Can you provide more details on this issue -

  1. What apis were you trying and any specific details to reproduce the issue ?
  2. java sdk version?

@tiankanghello
Copy link
Author

my java-sdk version 1.4,my jdk version 1.8.0,k8s dapr version 1.8

@tiankanghello
Copy link
Author

When I call the grpc api. The data can be called normally within 4M. When the data is greater than 4M, this error will be reported

@tiankanghello
Copy link
Author

@tiankanghello Can you provide more details on this issue -

  1. What apis were you trying and any specific details to reproduce the issue ?
  2. java sdk version?

my java-sdk version 1.4,my jdk version 1.8.0,k8s dapr version 1.8
When I call the grpc api. The data can be called normally within 4M. When the data is greater than 4M, this error will be reported

@mukundansundar
Copy link
Contributor

@tiankanghello please take a look at the CLI flag or equivalent Kubernetes annotation for HTTP request size. https://docs.dapr.io/reference/cli/dapr-run/

"--dapr-http-max-request-size" default is 4, for 4MB
For both HTTP and grpc this can be used for the runtime request size set....

@tiankanghello
Copy link
Author

@tiankanghello please take a look at the CLI flag or equivalent Kubernetes annotation for HTTP request size. https://docs.dapr.io/reference/cli/dapr-run/

"--dapr-http-max-request-size" default is 4, for 4MB For both HTTP and grpc this can be used for the runtime request size set....

--dapr-http-max-request-size I have configured 100M. The api can accept the request. But when the response comes back. The mistake was reported.

@tiankanghello
Copy link
Author

@tiankanghello Can you provide more details on this issue -

  1. What apis were you trying and any specific details to reproduce the issue ?
  2. java sdk version?

I guess this error is reported by the grpc package. It is possible that the maximum packet size accepted by the grpc packet is 4194304 bytes

@tiankanghello
Copy link
Author

If this problem can't be solved. I can only compress my data. Then unzip. This is not a good way. Because both the server and client need to be transformed

@mukundansundar
Copy link
Contributor

@tiankanghello
For grpc, the sdk uses a managed channel and there is a way to set max inbound message size for the channel

https://grpc.github.io/grpc-java/javadoc/io/grpc/ManagedChannelBuilder.html#maxInboundMessageSize-int-

A similar property should be available for okhttp client also

Cc @pravinpushkar

@mukundansundar
Copy link
Contributor

@tiankanghello we will take a look at this and get back to you on the next steps....

@tiankanghello
Copy link
Author

@tiankanghello we will take a look at this and get back to you on the next steps....

I hope you can find the problem as soon as possible, and then give me a reply on how to solve this problem. Thank you.

@tiankanghello
Copy link
Author

@mukundansundar Will this problem be solved or will it not be adjusted in the near future

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

No branches or pull requests

3 participants