DFE-Digital / DFE-Digital/dfe-analytics
Raising a ConfigurationError causes application to crash when using Rails 8.1.1
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 12
- Forks
- 9
- Avg merge
- 3d 15h
- Merged PRs (30d)
- 4
Description
When running bundle exec rails generate dfe:analytics:install after installing the gem on a Rails 8.1.1 application, I receive the following error
After investigating, the crash seems to be caused when raising the ConfigurationError if there are any configuration errors. I've investigated further and the same thing seems to occur when using a StandardError or an Exception. The errors do output on the screen correctly but something at the end of the exception causes the entire application to crash.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the problem with bundle exec rails generate dfe:analytics:install in a Rails 8.1.1 application, then trace how ConfigurationError is raised and handled when configuration errors are present. Compare the behavior with StandardError and Exception; done means configuration errors still appear without crashing the application.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rails, ruby
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100