You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, I could not find a counter part the ruby gem for Stripe to obtain the request_id for the last request. The header does not appear to saved here:
I'm a little hesitant to expose a #last_response type helper as seen in something like stripe/stripe-php#206 because as described in #313 it would be really nice to get this gem off of restclient and onto something a little more modern. Exposing a particular type of response object would go even further toward locking us into a particular HTTP client.
In the meantime (and forgive me if you've already seen this), StripeError does expose a #request_id accessor which is available anytime the API throws an error. It would of course be nice to be able to get a request ID at any time, but having one available in your logs during error cases is one of the concept's more valuable uses.
Greetings,
I was reading up on the documentation about request_ids (see link below)
https://stripe.com/docs/api?lang=ruby#request_ids
However, I could not find a counter part the ruby gem for Stripe to obtain the request_id for the last request. The header does not appear to saved here:
https://github.com/stripe/stripe-ruby/blob/master/lib/stripe.rb#L264
I would like to use the request id to save in my own logs, so that I can route staff to the proper error faster.
How can I get the request id?
Regards,
Daniel Lo
The text was updated successfully, but these errors were encountered: