-
Notifications
You must be signed in to change notification settings - Fork 552
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 calling Stripe::APIResource#refresh #1506
Comments
@yukideluxe I just ran into this a few minutes ago as well while trying to upgrade our gem to the 13.x series. The most recent version that works for me with I suspect the |
Hi y'all! Thanks for reporting. We'll investigate and have a fix up soon! |
Thanks @helenye-stripe. To be clear -- I don't think this is an actual bug. We just need to adjust our code to use the new StripeClient call pattern that was introduced in v13 of the gem. |
From what I've looked at, I think this is a bug that would persist even in the StripeClient pattern. We also plan to continue to support the existing resource-based pattern functionality, so we would like to fix this even if it wasn't. |
Fair enough. Thank you! |
Describe the bug
Hello!
We are experiencing the following error when calling the
Stripe::APIResource#refresh
method if the resource has been retrieved from alist
API request I think this has been happening sincev13.0.0
🙏🏻To Reproduce
#refresh
method on one of the results of the listExpected behavior
The
Stripe::APIResource#refresh
method successfully triggers a resource refreshCode snippets
OS
macOS
Language version
Ruby 3.3.6
Library version
stripe-ruby v13.0.0
API version
2024-06-20
Additional context
We only use
#refresh
on our test code and this issue affects our ability to upgrade the gem without significant code changes in the test suite. I wanted to bring awareness in case this is considered a bug but if this is an expected behavior, we will tweak our code!The text was updated successfully, but these errors were encountered: