question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Connect webhooks - account.updated not working in 2.4.0

See original GitHub issue

Webhooks for Connect account.updated events aren’t working for me - I understand this should be implemented as part of 2.4.0?

I have defined the following webhook handler:

@webhooks.handler("account.updated")
def webhook_connect_account(event, **kwargs):
      account = event.data['object']['id']

Currently, connect webhook hooks are not valid or processed, but produces a ‘No such event:’ error e.g Request req_WJgghRM9iI7B2b: No such event: ‘evt_1HqP9gIgSzDCinL0fWSPFYs5’

I’d guess this is because dj stripe is checking for the event from my application and can’t see the event from a connected account. Is there a way to fix this within 2.4?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
BelDawcommented, Mar 5, 2021

This issue has not been resolved. My stripe event is being sent successfully. But it is not calling webhook handler.

Can someone help with this?

1reaction
anjunamonkeycommented, Nov 23, 2020

Many thanks! Certainly - the full body object’s below:

{
    "id": "evt_1HqPELIgSzDCinL0HYpoZQw3",
    "object": "event",
    "account": "acct_1HqP6jIgSzDCinL0",
    "api_version": "2020-03-02",
    "created": 1606077137,
    "data": {
        "object": {
            "id": "acct_1HqP6jIgSzDCinL0",
            "object": "account",
            "business_profile": {
                "mcc": "7392",
                "name": null,
                "support_address": null,
                "support_email": null,
                "support_phone": "+44772340020",
                "support_url": null,
                "url": "X"
            },
            "capabilities": {
                "bancontact_payments": "active",
                "card_payments": "active",
                "eps_payments": "active",
                "giropay_payments": "active",
                "ideal_payments": "active",
                "p24_payments": "active",
                "sepa_debit_payments": "active",
                "sofort_payments": "active",
                "transfers": "active"
            },
            "charges_enabled": true,
            "country": "GB",
            "default_currency": "gbp",
            "details_submitted": true,
            "email": "X@gmail.com",
            "payouts_enabled": false,
            "settings": {
                "branding": {
                    "icon": null,
                    "logo": null,
                    "primary_color": null,
                    "secondary_color": null
                },
                "card_payments": {
                    "statement_descriptor_prefix": "X"
                },
                "dashboard": {
                    "display_name": "X",
                    "timezone": "Etc/UTC"
                },
                "payments": {
                    "statement_descriptor": "X.COM",
                    "statement_descriptor_kana": null,
                    "statement_descriptor_kanji": null
                }
            },
            "type": "standard",
            "metadata": {
                "Charity": "abc"
            },
            "requirements": {
                "current_deadline": null,
                "currently_due": [
                    "individual.verification.additional_document",
                    "individual.verification.document"
                ],
                "disabled_reason": "requirements.past_due",
                "errors": [
                    {
                        "code": "verification_failed_keyed_identity",
                        "reason": "The identity information you entered cannot be verified. Please correct any errors or upload a document that matches the identity fields (e.g., name and date of birth) that you entered.",
                        "requirement": "individual.verification.additional_document"
                    },
                    {
                        "code": "verification_failed_keyed_identity",
                        "reason": "The identity information you entered cannot be verified. Please correct any errors or upload a document that matches the identity fields (e.g., name and date of birth) that you entered.",
                        "requirement": "individual.verification.document"
                    }
                ],
                "eventually_due": [
                    "individual.verification.additional_document",
                    "individual.verification.document"
                ],
                "past_due": [
                    "individual.verification.additional_document",
                    "individual.verification.document"
                ],
                "pending_verification": []
            }
        },
        "previous_attributes": {
            "requirements": {
                "currently_due": [],
                "disabled_reason": "requirements.pending_verification",
                "errors": [],
                "eventually_due": [],
                "past_due": [],
                "pending_verification": [
                    "individual.verification.additional_document",
                    "individual.verification.document"
                ]
            }
        }
    },
    "livemode": false,
    "pending_webhooks": 1,
    "request": {
        "id": null,
        "idempotency_key": null
    },
    "type": "account.updated"
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Connect webhooks | Stripe Documentation
Learn how to use webhooks with Connect to be notified of Stripe activity. ... This includes the important account.updated event for any connected...
Read more >
stripe webhook account.updated is not working - Stack Overflow
I am trying to send an (simple test) email when I receive an account.updated call for a custom ...
Read more >
Webhook URL's missing after upgrade to 11.4.5 - GitLab
After upgrading from 11.2.5 to 11.4.5, the URL for many repository webhooks has disappeared causing builds to not be triggered. Attempting to test...
Read more >
Configure Webhook Notifications - Harbor docs
Log in to the Harbor interface with an account that has at least project administrator privileges. · Go to Projects, select a project,...
Read more >
Configure the validating webhook - Elastic
To help with troubleshooting, you can change the failurePolicy of the webhook configuration to Fail . This will cause create or update operations...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found