dj-stripe: All webhooks coming from connected accounts don't work

I get errors recorded like so:

Traceback (most recent call last):
  File "/code/djstripe/models/webhooks.py", line 96, in from_request
    obj.valid = obj.validate()
  File "/code/djstripe/models/webhooks.py", line 167, in validate
    id=local_data["id"], api_key=api_key
  File "/usr/local/lib/python3.6/site-packages/stripe/api_resources/abstract/api_resource.py", line 13, in retrieve
    instance.refresh()
  File "/usr/local/lib/python3.6/site-packages/stripe/api_resources/abstract/api_resource.py", line 17, in refresh
    self.refresh_from(self.request('get', self.instance_url()))
  File "/usr/local/lib/python3.6/site-packages/stripe/stripe_object.py", line 207, in request
    response, api_key = requestor.request(method, url, params, headers)
  File "/usr/local/lib/python3.6/site-packages/stripe/api_requestor.py", line 95, in request
    resp = self.interpret_response(rbody, rcode, rheaders)
  File "/usr/local/lib/python3.6/site-packages/stripe/api_requestor.py", line 312, in interpret_response
    self.handle_error_response(rbody, rcode, resp.data, rheaders)
  File "/usr/local/lib/python3.6/site-packages/stripe/api_requestor.py", line 120, in handle_error_response
    raise err
stripe.error.InvalidRequestError: Request req_ixdzPQf0tRtlF9: No such event: evt_1DNJpBJVingG2kkjLvemGfyR

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 19 (14 by maintainers)

Most upvoted comments

@sp576 , I have PR https://github.com/dj-stripe/dj-stripe/pull/1232 which mostly fixes this, but you’ve rightly pointed towards a few bits that I havent added stripe_account to yet.

I also have a bunch of other Connect fixes, mixed in with other misc enhancements, in https://github.com/jayvdb/dj-stripe/tree/pr_1109-and-sync-and-update . The DRF there is #1109 + some Connect fixes.

Is multi-webhook support for Connect vs Account webhooks worthy of a separate issue?

@ryancausey yes. We then can track it as blocked

Related to this, I’ve found that Stripe treats Account and Connect webhooks as separate entities, and thus there are two different signing keys. That doesn’t appear to be supported by djstripe at this time. Is multi-webhook support for Connect vs Account webhooks worthy of a separate issue?