Skip to content
This repository was archived by the owner on Mar 23, 2020. It is now read-only.

nfm/raven_rails_runner_bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal Rails app to demonstrate a bug where Sentry doesn’t record exceptions caused by Rails runner.

Steps to reproduce:

  1. Clone the repo and run bundle install

  2. Export SENTRY_SECURE_URL environment variable:

    export SENTRY_SECURE_URL="https://user:password@app.getsentry.com/app_id"
    
  3. Use Rails runner to run some code that causes an exception:

    ./bin/rails runner "1 / 0"

Sentry loads correctly, and is configured in config/initializers/raven.rb to report exceptions in development, but doesn’t record an exception.

Contrast this with the exception and exception_with_rails_environment_loaded rake tasks, where Sentry does correctly record exceptions.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors