Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(amplify-provider-awscloudformation): specify 127.0.0.1 as hostname #6780

Merged
merged 2 commits into from
Mar 3, 2021

Conversation

watilde
Copy link
Contributor

@watilde watilde commented Mar 3, 2021

CLI uses express server in amplify-provider-awscloudformation to listen to POST request from Admin UI login page when amplify configure. The default of the hostname is localhost, 0.0.0.0 and 127.0.0.1 on macOS, but Ubuntu on WSL on Windows uses the only localhost by default. Since 127.0.0.1 seems to be coded in Admin UI, we should specify 127.0.0.1 as the hostname in CLI so that CLI can finish amplify configure.

Fixes: #6779
Fixes: aws-amplify/amplify-studio#134

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

CLI uses express server in `amplify-provider-awscloudformation` to listen to POST request from
Admin UI login page when `amplify configure`. The default of the hostname is localhost, 0.0.0.0
and 127.0.0.1 on macOS, but Ubuntu on WSL on Windows uses only localhost by default.
Since 127.0.0.1 is used in Admin UI, we should specify 127.0.0.1 as the hostname in
CLI so that CLI can finish `amplify configure`.

Fixes: aws-amplify#6779
Fixes: aws-amplify/amplify-studio#134
@watilde watilde requested a review from a team as a code owner March 3, 2021 10:19
@codecov
Copy link

codecov bot commented Mar 3, 2021

Codecov Report

Merging #6780 (32da282) into master (44ea91a) will increase coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6780      +/-   ##
==========================================
+ Coverage   56.45%   56.50%   +0.05%     
==========================================
  Files         430      430              
  Lines       21138    21140       +2     
  Branches     4237     4237              
==========================================
+ Hits        11933    11946      +13     
+ Misses       8392     8381      -11     
  Partials      813      813              
Impacted Files Coverage Δ
...-awscloudformation/src/utils/admin-login-server.ts 38.59% <100.00%> (+22.23%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 44ea91a...32da282. Read the comment docs.

Copy link
Contributor

@jhockett jhockett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution @watilde!

@github-actions
Copy link

github-actions bot commented Mar 5, 2022

This pull request has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants