In the url shortening microservice project, the code I am trying to submit works well for me but the tests timing out. This is what’s popping up -
You can POST a URL to /api/shorturl and get a JSON response with original_url and short_urlproperties. Here’s an example:{ original_url : 'https://freeCodeCamp.org', short_url : 1}(Test timed out) When you visit/api/shorturl/<short_url>, you will be redirected to the original URL. (Test timed out)
@ RandellDawson That’s because I was tinkering with the code recently and might have removed it in the process. Sorry to misdirect you…I should have copied the code and tinkered with the copy instead.
I think there was a problem with Replit or my system or with the internet, idk, because the tests are passing now even though the code is still exactly the same as the one I originally wrote.
And I promise I had the res.json() in my original code too.