Closed lapwat closed 1 year ago
Hi @lapwat sounds like you have a misconfiguration in your timeouts.
The config-checker will show you that:
https://github.com/openfaas/config-checker
Or you can just follow this tutorial if you're on K8s:
In future, we can answer questions better when people give us steps to reproduce a problem. You didn't do that, so we weren't able to help you as much as you may have needed.
Alex
My actions before raising this issue
Why do you need this?
I am trying to get a response back from my function.
Who is this for?
What company is this for? Are you listed in the ADOPTERS.md file? No
Expected Behaviour
I would like to be able to get an answer from the function even if the payload is bigger than 1MB.
Current Behaviour
I have the following error message:
Can't reach service: xxx
When the response size of my serverless function is bigger than 1MB.
Are you a GitHub Sponsor (Yes/No?)
Check at: https://github.com/sponsors/openfaas
List All Possible Solutions and Workarounds
Is there a way to increase the 1MB nats limit from Openfaas Helm Chart ?
Context
If the response payload is under 1MB it works well.
If I build and run the function locally with
docker run
it works well.I think that the problem might come from the NATS payload size limit referenced here
https://docs.openfaas.com/reference/async/#configuration-limits
Logs
Your Environment
FaaS-CLI version ( Full output from:
faas-cli version
):Docker version
docker version
(e.g. Docker 17.0.05 ): 23.0.5Are you using OpenFaaS on Kubernetes or faasd?
OpenFaaS on Kubernetes installed with Helm Chart