Chain Middleware to Create a Time Server

I’m trying to pass this lesson: Chain Middleware to Create a Time Server, but I can’t and I don’t know why!! I even tried to copy the solution from the Giude and it also didn’t work.

any help!

Link to the challenge:

My Code:

  function(req, res, next) {
    req.time = new Date().toString();
  function(req, res) {
    res.send({ time: req.time });

Hello tarek,

Can you please post a link to your code? Codepen or Glitch or whatever you are using. I think that that would help me (or somebody else) figure out what is going wrong.

Here it is:

Hi @tarek3529,

I’ve pasted your live app url into the challenge solution and it is passing for me.

Are you sure you’re using the correct url. This is the app url I used:

1 Like

Hi Robert!

Yes, I used the same url. I think this is the main problem, that it’s a correct solution but the website tester - for some reason - can’t test it!

As I said I’ve copied the solution given in the guide and it didn’t work too.

So, what should I do?