at=info method=GET path="/api/users?username=Aman" host=soshial.herokuapp.com dyno=web.1 connect=0ms status=500

61 Views Asked by At

I am using the nodeJS server which I have deployed on Heroku and it is working fine on the homepage("/") but it's not working when I requested the URL("/api/users").

When I am requesting data from the server these errors occur

Error Logs

Here is the Code which is in my index.js

index.js Code

0

There are 0 best solutions below