Open KCErb opened 5 years ago
I got a similar stack trace when my SEND_GRID_KEY
environment variable was missing. We do raise if some of these keys are missing ENV["SEND_GRID_KEY"]? || raise_missing_key_message
but maybe it's not working like we expect?
On the DB-related errors, this might be related: https://github.com/crystal-lang/crystal-db/issues/103. We might need to handle initializing the connection a little differently. Not sure.
Might be related: https://github.com/crystal-lang/crystal/issues/8387
That backtrace is same to crystal-lang/crystal#8075.
Some kinds of dev mistakes can result in the titular error. Usually followed by a pretty nasty looking error message:
This feels worse than it is when raised by Heroku because it is all you get back. If you actually run a command on the dyno itself you'll usually get a better idea of what went wrong. The two examples I can give are:
lucky db.migrate
when noDATABASE_URL
is set in production. You get this error message beforeEND_OF_STACK
which is easy to debug
lucky db.drop
which isn't allowed on heroku like so:heroku run lucky db.drop
(you're supposed to use their methodheroku pg:reset DATABASE
).This time you don't get any message from lucky, I guess it is swallowed by Heroku and then they return the
END_OF_STACK
error I pasted from above.Both are database related errors, so perhaps the issue is listening for errors related to db tasks?