InvalidRequestError: Request req_XXX: No such charge: dp_XXX
File "velodrome/lock8/utils.py", line 385, in ingest_stripe_event
message=data)
File "pinax/stripe/actions/events.py", line 39, in add_event
webhook.process()
File "pinax/stripe/webhooks.py", line 138, in process
raise e
File "pinax/stripe/webhooks.py", line 129, in process
self.process_webhook()
File "pinax/stripe/webhooks.py", line 248, in process_webhook
stripe_account=self.event.stripe_account_stripe_id,
File "pinax/stripe/actions/charges.py", line 170, in sync_charge
retrieve(stripe_id, stripe_account=stripe_account)
File "pinax/stripe/actions/charges.py", line 152, in retrieve
expand=["balance_transaction"]
File "stripe/api_resources/abstract/api_resource.py", line 13, in retrieve
instance.refresh()
File "stripe/api_resources/abstract/api_resource.py", line 17, in refresh
self.refresh_from(self.request('get', self.instance_url()))
File "stripe/stripe_object.py", line 207, in request
response, api_key = requestor.request(method, url, params, headers)
File "stripe/api_requestor.py", line 94, in request
resp = self.interpret_response(rbody, rcode, rheaders)
File "stripe/api_requestor.py", line 306, in interpret_response
self.handle_error_response(rbody, rcode, resp.data, rheaders)
File "stripe/api_requestor.py", line 119, in handle_error_response
raise err
charge.dispute.funds_withdrawn
events get processed through theChargeWebhook
, but that fails, because it tried to fetchdp_XXX
as a charge.Example event: