API python script downloading file from server

Hi everyone,
I’m having an issue with my Python-based FastAPI web service deployed on Render

Here’s the situation:

  • Locally, my script performs an external API request, receives a .zip file with a .csv inside, and saves or extracts the file just fine.
  • I deployed the same script as a FastAPI web service (linked with my GitHub repo).
  • When I visit the endpoint in the browser (e.g. /export_csv), the response status is 200 OK, and I can see the correct server data is being returned.
    Anyone could help ?