URL Shortener Microservice does't pass tests

Tell us what’s happening:
Hi. I have created my solution and it is working fine. I have tested it using Postman and everything works the same as freecodecamp example. But my solution doesn’t pass the tests. Please help me. Can there be any problems with the tests?

Your project link(s)

solution: https://replit.com/@ebdurrehm/url-shortener

Your browser information:

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

Challenge: URL Shortener Microservice

Link to the challenge:

I found out where the problem came from. I also wanted to mention the solution here

const cors = require('cors');

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