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년 전111회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠