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

Problem of Use 127.0.0.1 IP Address for Proxies Exercise #295

Open
Xresolver opened this issue Jan 6, 2024 · 0 comments
Open

Problem of Use 127.0.0.1 IP Address for Proxies Exercise #295

Xresolver opened this issue Jan 6, 2024 · 0 comments

Comments

@Xresolver
Copy link

Hello Cesar,

I have an interesting situation for Proxies exercise:

If I use:

proxy: {
    host: 'localhost',
    port: 65535
}

I've got this:

1.  ACTUAL:    "Hello Proxies"
1.  EXPECTED:  "{\"message\":\"Client request error: connect ECONNREFUSED 127.0.0.1:65535\",\"statusCode\":502,\"error\":\"Bad Gateway\"}"

Submission results did not match expected!

Status code returned is correct

If I use:

proxy: {
    host: '127.0.0.1',
    port: 65535
}

I've got this:

1.  ACTUAL:    "{\"message\":\"Client request error: connect ECONNREFUSED 127.0.0.1:65535\",\"statusCode\":502,\"error\":\"Bad Gateway\"}"
1.  EXPECTED:  "{\"message\":\"Client request error: connect ECONNREFUSED 127.0.0.1:65535\",\"statusCode\":502,\"error\":\"Bad Gateway\"}"

Submission results match expected

Status code 502 returned from url (http://localhost:34283/proxy), expected 200.

This problem is related to 127.0.0.1 ip but I have no idea what is the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant