Root level logger middleware should be active issue is not solved it is bug of freecodecamp website why anybody don't know why error is occured

Tell us what’s happening:
My Test Cases is not getting passed…
In forum nobody know Now why this error is occurred even I tried all solutions that given in forum .


Here is My Code


var express = require('express');
var app = express();

// --> 7)  Mount the Logger middleware here
app.use((req,res,next)=>{
  const{ method,path} = req;
  const ip='127.0.0.1'
  console.log(`${method} ${path} - ${ip}`);
  next();
});

Your browser information:

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0.

Challenge: Implement a Root-Level Request Logger Middleware

Link to the challenge:

Hey!

Think you were supposed to get ip from req too

I’ve been struggling with the issue for quite a while : starting from use .env challenge,all the tests of Basic Node and Express section just failed although the code seemed to work, don’t know if it’s the case, but that’s how I ‘solved this’ :wink:

Althought right now seems like it might be glitch issue https://status.glitch.com/