Not able to download the PDF report for my application whose backend is hosted on AWS EC2 Linux Instance.

0

Hi AWS,

I am working on a fullstack application, where the frontend of the application is written in ReactJS and the backend is in NodeJS. The static files are stored in S3 and is hosted through CloudFront.

When I am trying to download the file which is in the PDF format I am able to download it successfully when testing it locally whereas the same is failing when hosted on AWS EC2 Instance.

Is there anything which I need to change in terms of EC2 settings for making it work. The issue is similar to this one: https://stackoverflow.com/questions/68507437/downloading-a-pdf-file-in-reactjs-works-locally-but-doesnt-work-on-amazon-ampli

Please help.

  • Hi, @Arjun Goel.

    Is the error happening on the frontend or the backend? Can you share the error log etc.?

    Please share an overview of your PDF report generation code if it's happening in the backend.

    I think it's either a security issue or a problem with the PDF generation process in the backend.

profile picture
已提問 2 年前檢視次數 112 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南