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
Unexpected error while processing request: undefined method `each' for nil:NilClass #1856
Comments
@bcoles Are you aware of what might be throwing this error, ive been chasing it down through the thin server, Logger and Http and have not found it as of yet. |
The error is only present when |
E, [2020-05-06T20:27:06.921636 #2765] ERROR -- : Unexpected error while processing request: undefined method |
So been a while but i was working on this issue last night and i know at what point its erroring. Its in the gems/2.7.0/gems/rack-2.2.3/lib/rack/common_logger.rb file where it tries to call the following line:
Which comes to this class:
Which is where the return null comes from. Not sure what the fix for this one will be yet but it might be the gem itself. See below for the byebug dump:
Worth noting that this class gets called elsewhere and works fine:
The response is this:
|
This only happens for URL routes which don't use the new Sinatra class. An issue was created to migrate all URL routes to extend the new |
Enabling
beef.http.debug: true
results in the following stacktrace when accessing the admin UI.The text was updated successfully, but these errors were encountered: