rails / mission_control-jobs

Dashboard and Active Job extensions to operate and troubleshoot background jobs
MIT License
611 stars 71 forks source link

Error in Rails 8 RC2 with Inertia, React, and vite_ruby #205

Open wilbertliu opened 1 week ago

wilbertliu commented 1 week ago

Hey folks,

I'm on Rails 8 rc2 with Inertia, React, and vite_ruby. Every time I try to visit the /jobs page, I get this error:

CleanShot 2024-11-15 at 09 43 25@2x

Could anyone help?

rosa commented 6 days ago

@wilbertliu, what do you get from

bin/rails routes | grep jobs

?

wilbertliu commented 5 days ago

CleanShot 2024-11-16 at 21 19 52@2x

I hope that's clear, @rosa 😀

rosa commented 5 days ago

Yes, that's totally clear and it also looks correct. Hmmm.. I don't really know what's going on here. What I'd do here, if this were happening to me, is to set a breakpoint in lib/action_dispatch/journey/router.rb:133 in find_routes and then step through it to try to figure out what's causing the infinite (or too long) recursion with the as_json calls.

wilbertliu commented 5 days ago

@rosa Looks like that is not something I can do, right? lib/action_dispatch is Rails internal if I'm not mistaken 🥲