aws-amplify / amplify-hosting

AWS Amplify Hosting provides a Git-based workflow for deploying and hosting fullstack serverless web applications.
https://aws.amazon.com/amplify/hosting/
Apache License 2.0
453 stars 113 forks source link

403 ERROR The request could not be satisfied. #571

Closed ShoubhikBanerjee closed 4 years ago

ShoubhikBanerjee commented 4 years ago

Issue I am Facing : This distribution is not configured to allow the HTTP request method that was used for this request. The distribution supports only cachable requests. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner. If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.

When it occurs?: While redirecting from other web app, directly to this app's path (say, https://abc.xz.com/myRedirectedPath).

My Current amplify.yml:

version: 0.1 frontend: phases: preBuild: commands: - yarn install build: commands: - yarn run build artifacts: # IMPORTANT - Please verify your build output directory baseDirectory: build/ files: - '**/*' customHeaders: - pattern: '**/paymentCallback' headers: - key: 'Accept' value: 'application/json, text/plain, */*' - key: 'Access-Control-Allow-Methods' value: '*' cache: paths: - node_modules/**/*

Its a PWA react app:

Issue/question On hitting the url (say, https://abc.xz.com/myRedirectedPath), does not gives any error. But when it is redirected from other app, it shows the error. The site is served from Git and not from S3.

Error message 403 ERROR The request could not be satisfied.

Additional information from error message Generated by cloudfront (CloudFront) Request ID: FEQiDffDdsFBX2Sg6Ct-IrNSFgGpe41WwHsJB5OOV-XilBKO-7PW7g==

ihao8 commented 4 years ago

Hi @ShoubhikBanerjee , sorry that you have this issue.

When it occurs?: While redirecting from other web app, directly to this app's path (say, https://abc.xz.com/myRedirectedPath).

What is other web app? Is that an Amplify Console App or from other resources? Thanks

ShoubhikBanerjee commented 4 years ago

@Joycehao19 thanks for reaching out... It's an paytm payment gateway integration. And hence it's redirected from their side. And most probably they are out from amplify console app.

ShoubhikBanerjee commented 4 years ago

I am still helpless... Is anyone there to help me out?

ShoubhikBanerjee commented 4 years ago

Any one here to help?

adriencg commented 4 years ago

https://github.com/aws-amplify/amplify-console/issues/571 This issue appears to be duplicated. If they are, can we close this and follow-up on 581?

ShoubhikBanerjee commented 4 years ago

yes please close it

MDrifath commented 3 years ago

I thinks you want to look up for the aws documentation https://aws.amazon.com/premiumsupport/knowledge-center/resolve-cloudfront-bad-request-error/

github-actions[bot] commented 1 year ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.