Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix DRbUnknown error with unserializable Exception causes #79

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

jdelStrother
Copy link
Contributor

I ran into this when an error was raised in a view template, so got wrapped in ActionView::TemplateError. ActionView::TemplateError was correctly serialised, but its cause still referenced classes that don't exist in the sink, resulting in errors like this:

flatware-rspec-2.2.0/lib/flatware/rspec/formatters/console.rb:29:in `summarize': undefined method `pending_examples' for
#<DRb::DRbUnknown:0x0000000105f7c6b8 @name="User", @buf="\x04\bo: 
Flatware::RSpec::Checkpoint\x06:\f@events{\t:\x10deprecation[\x00:\x11
dump_pendingo:7Flatware::RSpec::Marshalable::ExamplesNotification\x06:\x0E
@reporterS:AFlatware::RSpec::Marshalable::ExamplesNotification::Reporter\b:\rexamples[\x

Maybe something like this to fix it?

Copy link
Owner

@briandunn briandunn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@briandunn briandunn merged commit ed0a352 into briandunn:master Feb 29, 2024
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants