ccarruitero / ccarruitero/makemehapi

Problem of Use 127.0.0.1 IP Address for Proxies Exercise

Open
#295 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
480
Forks
104
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.