While attempting to upgrade our SDK version from 12.6.0 to the latest, I noticed that calling #refresh
on an StripeObject received from a webhook event no longer works.
This breaks our integration in a number of places since we currently depend on that behavior to fetch the latest version of a resource.
NoMethodError - undefined method `execute_request_initialize_from' for nil:NilClass
--
| lib/procedures/stripe_procedures.rb:538:in `stripe_update_customer_subscriptions_with_tax'
| lib/billing/community.rb:125:in `_handle_customer_updated'
| lib/billing/community.rb:68:in `handle_community_event'
| controllers/stripe_webhooks.rb:313:in `_handle_stripe_event'
| controllers/stripe_webhooks.rb:144:in `block in <class:App>'
| lib/core/sinatra.rb:33:in `route_eval'
| est/controllers/controller_testing_mixin.rb:143:in `post'
| lib/test/stripe_webhooks.rb:29:in `send_stripe_webhook'
To Reproduce
event = Stripe::Webhook.construct_event(...)
event.data.object.refresh
Calling event.data.object.refresh
re-fetches the object
Linux
Language versionRuby
Library versionstripe-ruby v15.1.0
API version2019-02-19
Additional contextNo response
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4