Back End Development and APIs Projects

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

Your project link(s)


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 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.

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