Back End Development and APIs Projects - Timestamp Microservice

Tell us what’s happening:
Is this challenge broken?

Your project link(s)

solution: boilerplate-project-timestamp (6) - Replit

Your browser information:

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

Challenge: Back End Development and APIs Projects - Timestamp Microservice

Link to the challenge:

Every video I follow their code works fine and replit updates their code with no trouble… I follow along and replit doesn’t even recognize my code and keeps showing the example code in HTML rather than the code im writing in index.js??? What is going on?

Hmm. Any reason why the project you linked is …timestamp (6) ?
Do you have several copies of this project in your repls?

I would be careful following videos for specific challenges. For one, you likely will not learn as much and secondly, they might be outdated.

The Replit you linked (6) to doesn’t have any app.listen code in it.

Replit 7 is not using the route path correctly.

app.get("/api/:date?"), function (req, res) {

By doing app.get("/api/:date?") you close the app.get method.

After fixing that you will still fail this test.

A request to /api/1451001600000 should return { unix: 1451001600000, utc: "Fri, 25 Dec 2015 00:00:00 GMT" }

From having this response to that request.

{"unix":null,"utc":"Invalid Date"}

Your Replits

I passed this challenge just two or three days ago. It was working fine for me. I looked at your linked repl though and it was blank?

It isn’t blank, it just never starts the server.

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