Comments (3)
GET requests don't have a body, per the HTTP spec. Maybe you are looking for request.params
?
from rollbar-gem.
I believe it's request.body
.
In postman, it looked like this:
The curl is:
curl --location --request GET 'localhost:3300/partner/check-status' \
--header 'Content-Type: application/json' \
--data '{
"mto_name": "mastercard",
"external_id": "93618bea-9cb7-42f1-b379-87e75fa67d63"
}'
I know this is not the best practice, but I am working on legacy code.
So, is there a built-in way to put the request.body
of GET request to the payload other than putting in extra?
As an integration engineer who integrates with more than 30 companies, I found many companies that put request.body
in GET request. I agree it's not the best practice, but many people still do it.
from rollbar-gem.
Huh, TIL!
So you want the request body to appear in the Rollbar UI when an error occurs during a GET request - is that correct?
The relevant part of the rollbar-gem code is: https://github.com/rollbar/rollbar-gem/blob/master/lib/rollbar/request_data_extractor.rb#L31-L64
from rollbar-gem.
Related Issues (20)
- Swallowing errors on Rails 7.1 HOT 9
- Load rollbar.min.js as local asset instead of CDN HOT 1
- Using rescue_from in ApplicationMailer has unexpected results under rails 6 and rollbar 3.4.0 HOT 2
- bug: intermittent ArgumentError from ignore_before_process on JRuby HOT 2
- Better DX for submitting dynamic custom data on automatically reported errors
- DEPRECATION: Sidekiq exception handlers now take three arguments HOT 3
- Deprecation warning in Rack 3 HOT 4
- Deployment notification error with capistrano HOT 4
- Full error reports do not show up in development env
- Multiple notifier and one Sidekiq worker HOT 1
- NameError: undefined local variable or method `arguments' for an instance of xxxMailer HOT 4
- `NameError: uninitialized constant Rollbar::ActiveJob` in `3.5.0`. HOT 1
- Rollbar.error has less context than uncaught exceptions HOT 3
- Release 3.5.2 to rubygems HOT 1
- Using ActiveSupport::ErrorReporter HOT 1
- Exception level filter not working for custom exception HOT 2
- Rollbar::Logger not working well with the newest logger gem
- Rollbar: Unexpected Rollbar.loadFull() called on a Notifier instance.
- Update rollbar.js to latest (from 2.26.1 to 2.26.4) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rollbar-gem.