PDF download works on localhost but not on server
Unanswered
Western thatching ant posted this in #help-forum
Western thatching antOP
Please help me troubleshoot an issue where my code for downloading a report works perfectly on localhost but does not work when I deploy the code to a Digital Ocean Ubuntu server. The code is a Next.js 14 frontend and a FastAPI backend. Please not that on the Swagger docs for the FastAPI backend, everything works perfectly even on the server, so the issue I believe is on the frontend on the server.
Here is what the relevant page.jsx (the one for downloading the fundraiser report) on the Next.js 14 project looks like:
Here is what the relevant page.jsx (the one for downloading the fundraiser report) on the Next.js 14 project looks like:
1 Reply
Field Spaniel
What happens when you try to download that pdf in production? The API call fails? does it throw an error?