Recently, we have issues with user initiated download with Phoenix / Plug.
All versions are updated.
This used to work flawlessly.
What is the best approach to send a file to the user?
PS: full_path is the full path extracted with Path.expand(). And it’s working and tested with File.read!().
If you aren’t getting any logs when the request comes in then it sounds like there is some issue with NGINX seeing your phoenix program. Does this happen with any other route or just files?
According to that page, nginx buffers the full response before sending it on to the client. Maybe the response is too big and adjusting the buffer sizes will solve the issue?
I’ve changed my pipeline to exclude NavigationHistory export path.
My export generated a long path and header grew more than it should.
Now it’s working as intended.
Thanks everyone.