Back End Development and APIs Projects

Tell us what’s happening:
Describe your issue in detail here.

Your project link(s)

solution: https://boilerplate-project-urlshortener-3--22284277.repl.co

Your browser information:

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

Challenge: Back End Development and APIs Projects - URL Shortener Microservice

Link to the challenge:

Hi there and welcome to our community!

Could you describe the issue you’re facing please? It’s difficult for us to help you if we don’t know what you’re having trouble with.

SyntaxError: Unexpected end of input

You didn’t close the /api/shorturl route handler you are missing a set of });

const urlparser = require('url')

You do not have this dependency installed.

You can POST a URL to /api/shorturl

You do not have a POST route.


I didn’t check any further. If you have copied and pasted this code from somewhere without understanding it please do not do that.