Request Header Parser Microservice bug

Hello I’m trying to finish and upload the Request Header Parser Microservice project. I have all of the solutions working locally, but while uploading it and running it through the website tests, the tests fail on IP address. So far I’ve tried the following:

/*req.ip → doesnt work

  • req.connection.remoteAddress → doesnt work
  • req.socket.address().address - > doesnt work
  • req.header(‘ipaddress’) → doesnt work
  • req.header(‘X-Forwarded-For’) → doesnt work*/

Any idea as to why I can’t pass the tests?

Your project link(s)

githubLink: GitHub - Frozies/boilerplate-project-headerparser: A boilerplate for a freeCodeCamp project.

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36.

Challenge: Request Header Parser Microservice

Link to the challenge:

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.