500 internal server error

Hi,
Every thing is working fine in local
but, in heroku its getting 500 internal server error,in heroku i pull all files from git
I have tried but i am not able to fix
I think its might be a out of topic i dont know
but in local its working well

1 Like

It is very widespread. Try to take a log of heroku and show us.

Also check heroku’s environment variables. Database connection, etc.

1 Like

Well, then we can’t see much about it, except that the server is going up, but this route itself is giving an error 500.

Try to put NODE_ENV in development for the return of the error to see a debug and be able to analyze the error better.

2 Likes

Hi leleuvilela,
Thanks for the valuable reply.
I have checked in the stackoverflow answers for nodejs and heroku 500 error, their suggested answer is delete the app and create new one , it worked for me
now everything working fine in heroku.
thanks happy coding…

2 Likes