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
457 stars 116 forks source link

Amplify rewrite not working with custom domains #2833

Closed pankaj-mule closed 2 years ago

pankaj-mule commented 2 years ago

Before opening, please confirm:

App Id

d2vlbywok6rbvz

Region

ap-northeast-1

Step

Custom Domain rewrite failing for some ISP

Status

Failed

Issue or question

I have hosted react application using amplify, which is working fine amplify domain, but with custom domain it wasn't working on few places. when we drilled down the issue it seems failing only when api's are called through rewrites added in App Setting.

API added in rewrite is pointing to backend system which is deployed in aws with route 53 configured to elb where it has hosted. Everything works fine with amplify url but failing only through custom domain

Error message

With custom domain,

same app same machine same api we getting ERR_HTTP2_PROTOCOL_ERROR for custom domain and not for amplify domain

Additional information

We didn't find any configurations to use same ssl as used for elb, downgrade http2 to http1.1, disable cors and other cloudfront configs

So tried to create seperate cloudfront which should be mapped to amplify app but it didn't worked as well

pankaj-mule commented 2 years ago

UI and API are hosted with same server with different subdomains

ghost commented 2 years ago

Hi @pankaj-mule 👋🏽 can you please provide an HAR capture for when you access the API through the redirects with the custom domain?

github-actions[bot] commented 2 years ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.

pankaj-mule commented 2 years ago

hloriana, we are still facing issue, as you asked to share HAR, it may have sensitive information due to which we may not able to share any info

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.