dj-stripe automatically syncs your Stripe Data to your local database as pre-implemented Django Models allowing you to use the Django ORM, in your code, to work with the data making it easier and faster.
When a JSON is returned that references objects on the connected accounts, dj-stripe incorrectly tries to retrieve them from the platform accounts causing the webhook sync to fail. This, however, is usually not a problem on production as Stripe usually retries webhooks a couple of times and in the next re-try because the object, on the connected account is already in the db (from its own connect webhook), the sync works, just fine.
Software versions
dj-stripe version: All
Python version: All
Django version: All
Stripe API version: All
Database type and version: All
Steps To Reproduce
Follow steps listed in issue #1777
Can you reproduce the issue with the latest version of master?
Describe the bug
When a JSON is returned that references objects on the connected accounts, dj-stripe incorrectly tries to retrieve them from the platform accounts causing the webhook sync to fail. This, however, is usually not a problem on production as Stripe usually retries webhooks a couple of times and in the next re-try because the object, on the connected account is already in the db (from its own connect webhook), the sync works, just fine.
Software versions
Steps To Reproduce
Follow steps listed in issue #1777
Can you reproduce the issue with the latest version of master?
Yes
Expected Behavior
Ideally the webhook sync should not fail.
Actual Behavior