I am querying API, which returns a PDF. However, the API is not correct as it returns mime type application/json.
To fix that, I am using a custom code.
413 would mean that the generated JSON for the workflow that gets sent to /rest/workflow/run is larger than 16MB.
Do you have env variable N8N_DEFAULT_BINARY_DATA_MODE set to filesystem? if not, I’d recommend trying that.
This works, thank you. One question thou. We are using an ephemeral storage. So once n8n restart data isn’t there. I don’t see a problem with that, as the data is in transit here. And we are not plan to store data locally in general.
Are there any other issues or issues we might see as a side effect? For example, History?
This setting only affects binary data created during executions. With ephemeral storage the only risk is that someone looking at an old executions might not be able to view/download the binary data, once those files are gone.
Since you are using Kubernetes, I’d recommend creating a PVC like this: