# My URL shortener microservice not working: help, please

**URL:** <https://forum.freecodecamp.org/t/my-url-shortener-microservice-not-working-help-please/462977>\
**Category:** Curriculum Help\
**Tags:** javascript\
**Created:** [June 1, 2021, 5:39pm UTC](https://forum.freecodecamp.org/t/my-url-shortener-microservice-not-working-help-please/462977 "2021-06-01T17:39:49Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![francesca.giammichel](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/francesca.giammichel/32/208869_2.png) [@francesca.giammichel](https://forum.freecodecamp.org/u/francesca.giammichel)\
**Post date:** [June 3, 2021, 9:01am UTC](https://forum.freecodecamp.org/t/my-url-shortener-microservice-not-working-help-please/462977/20 "2021-06-03T09:01:22Z")

</div>

i will definitely consider your code for future needs…  
at the moment I have an issue with the find() methods in DB and I opened a new post, may i ask you to have a look and help me there, too?  
this is the link to the post

> [@Working on mongo DB: need an explanation](https://forum.freecodecamp.org/t/working-on-mongo-db-need-an-explanation/463131):
>
> Hallo, I am currently working on a challenge and at the moment I need to implement a code doing this actions: 1-check if a username is in the database 2–is so, return “username exists” 3-if not add the username I have created this function for searching the database (User is the mongoose model) const findUser = function(user) { User.findOne({username : user},function(err, userFound){ if(err) return res.json({err: "search failed"}); else return userFound; }) }; but if I tes…

Thank you 🙂

---

_[View the full topic](https://forum.freecodecamp.org/t/my-url-shortener-microservice-not-working-help-please/462977)._
