Last 2 tests aren't passing for URL shortener?

Tell us what’s happening:
I don’t know what is wrong. I have fixed it and it works for me sometimes, but then occasionally it won’t work. usually with retreving a redirect page.
I’m also getting an error where occasionally it can’t find the original_url
It definitley returns an error when a bad url is put in.
Please help!

Your code so far
https://repl.it/@SethAlan/boilerplate-project-urlshortener#server.js

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36.

Challenge: URL Shortener Microservice

Link to the challenge: