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.

回答なし

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ