Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku giving 500 error with little information + Internal Server Error

Heroku showing this message on the page:

"internal server error"

This error is showing in console:

GET https://frozen-gorge-82417.herokuapp.com/auth/github/callback?error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.&error_uri=https%3A%2F%2Fdeveloper.github.com%2Fv3%2Foauth%2F%23redirect-uri-mismatch 500 (Internal Server Error)

like image 933
Himanshu Rana Avatar asked Sep 03 '17 08:09

Himanshu Rana


People also ask

How do I fix 500 Internal server error in Linux?

Start clearing your browser cache. Unless the page that displays an error of 500 is cached, the browser should request a version of the page after clearing the cache. Then, come back. Until then, the web developer could fix the server problem.

Why am I getting application error on heroku?

"Application Error" or similar is always caused by your own application code. Routing errors will normally only surface themselves within the logs of your application. In most cases, you will be able to see the cause of the error there. To learn more about logging, please see our Logging article on DevCenter.


2 Answers

Check the logs of your Heroku application to see more details. You can stream the log using the Heroku CLI after logging in:

heroku logs -t

Alternatively, you can view the logs on the app dashboard.

like image 142
Brandon DeRosier Avatar answered Oct 14 '22 04:10

Brandon DeRosier


Do you use database ? if yes, don't forget to add database add-ons in resource of your heroku project and create table that you need in database.

like image 25
Fatur Avatar answered Oct 14 '22 04:10

Fatur