Closed wivarn closed 1 year ago
I'm getting this error as well using Jets 3.0.23.
Did you have to revert to a lower version or did you have another workaround?
I reset jets to a commit before this one where both errors affecting mounted rack apps are not present and published it as a gem. Anyone facing this issue can use this in the interim.
@wivarn Thanks for the detailed report. The line you identify was the fix. Appreciate it.
Checklist
jets upgrade
command that makes this a simple task. There's also an Upgrading Guide: http://rubyonjets.com/docs/upgrading/My Environment
I am upgrading Jets from
3.0.0
to3.1.1
Expected Behaviour
Jets should not be throwing a
ArgumentError
Current Behavior
Stacktrace:
Step-by-step reproduction instructions
Mount any rack app, deploy it and hit the endpoint
Solution Suggestion
Seems like the bug was introduced in this commit https://github.com/boltops-tools/jets/commit/fcda68924d61d5739f691a67228db72afb850c01
meth
was removed as an argument in multiple places but it appears this place was missed https://github.com/boltops-tools/jets/blob/master/lib/jets/internal/app/controllers/jets/bare_controller.rb#L13I tested and verified the following monkey patch fixes this issue:
However, I'm not too familiar with the codebase so I'm not sure if this is the correct/best place to fix the bug. This can probably fixed further up or down the callstack.