Skip to content

Problem of Use 127.0.0.1 IP Address for Proxies Exercise #295

@SB1lal

Description

@SB1lal

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions