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

Error when sending error with Rack 3.0 app #1106

Closed
aglushkov opened this issue Oct 6, 2022 · 0 comments · Fixed by #1107
Closed

Error when sending error with Rack 3.0 app #1106

aglushkov opened this issue Oct 6, 2022 · 0 comments · Fixed by #1107

Comments

@aglushkov
Copy link
Contributor

Rack 3.0 has breaking change that input is not required to be rewindable

I have Roda app with Puma and Rack 3.0, and when sending app error it raises rollbar error

E, [2022-10-06T23:55:11.483086 #1082613] ERROR -- : [Rollbar] Reporting internal error encountered while sending data to Rollbar.
E, [2022-10-06T23:55:11.498481 #1082613] ERROR -- : [Rollbar] Sending failsafe response due to NoMethodError: "undefined method `rewind' for #<Rack::Lint::Wrapper::InputWrapper:0x00007f605469e8b0 @input=#<Puma::NullIO:0x00007f60535e6d10>>

      rack_req.body.rewind
                   ^^^^^^^" in /home/xxx/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/rollbar-3.3.1/lib/rollbar/request_data_extractor.rb:226:in `ensure in rollbar_raw_body_params': build_item in exception_data
I, [2022-10-06T23:55:11.512067 #1082613]  INFO -- : [Rollbar] Sending item
I, [2022-10-06T23:55:11.512332 #1082613]  INFO -- : [Rollbar] Sending json
I, [2022-10-06T23:55:11.993653 #1082613]  INFO -- : [Rollbar] Success
E, [2022-10-06T23:55:11.997402 #1082613] ERROR -- : [Rollbar] Exception: undefined method `rewind' for #<Rack::Lint::Wrapper::InputWrapper:0x00007f605469e8b0 @input=#<Puma::NullIO:0x00007f60535e6d10>>

      rack_req.body.rewind
                   ^^^^^^^
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 a pull request may close this issue.

1 participant