Docusign not hitting webhook URL

2019-08-03 01:46发布

问题:

I'm trying to use webhooks, but no events are being sent to my application via the webhook url. So far I was able to configure and send correctly envelopes with enough information to monitor status, but when things changes in the envelopes, nothing happens, I mean, no requests are made to my webhook URL, at all.

My app is doing good, so if I manually hit (GET) https://subdomain.app.com/docusign/webhook, it works fine and it shows both on my app log and Nginx log. But viewing, signing and completing documents/envelopes are not generating events to the webhook url.

I noticed that, in the examples, the events are capitalized for recientEvents, but not for envelopeEvents, is this right?

Is there anything else to be configured?

Is is possible to see this information in the Docusign web interface (https://account-d.docusign.com/logout#/username)? I would like to check if this data is correctly set in the envelope.

Here's the envelope request (minus some data):

{
    "documents": [{
        "documentId": 1,
        "name": "XXXXXXXXX.pdf",
        "documentBase64": "XXXXXXX"
    }],
    "recipients": {
        "signers": [{
            "tabs": {
                "signHereTabs": [{
                    "documentId": 1,
                    "recipientId": 1,
                    "pageNumber": 1,
                    "anchorString": "recipient_signature"
                }]
            },
            "name": "XXXXXX",
            "email": "XXXX@XXXX.co",
            "recipientId": 1,
            "clientUserId": XXXX
        }]
    },
    "eventNotification": {
        "url": "https:\/\/subdomain.app.com\/docusign\/webhook",
        "loggingEnabled": "true",
        "envelopeEvents": [{
            "envelopeEventStatusCode": "sent"
        }, {
            "envelopeEventStatusCode": "delivered"
        }, {
            "envelopeEventStatusCode": "completed"
        }, {
            "envelopeEventStatusCode": "declined"
        }, {
            "envelopeEventStatusCode": "voided"
        }, {
            "envelopeEventStatusCode": "sent"
        }, {
            "envelopeEventStatusCode": "sent"
        }],
        "recipientEvents": [{
            "recipientEventStatusCode": "Sent"
        }, {
            "recipientEventStatusCode": "Delivered"
        }, {
            "recipientEventStatusCode": "Completed"
        }, {
            "recipientEventStatusCode": "Declined"
        }, {
            "recipientEventStatusCode": "AuthenticationFailed"
        }, {
            "recipientEventStatusCode": "AutoResponded"
        }]
    },
    "status": "sent",
    "emailSubject": "XXXXXX",
    "brandId": "XXXXXXXXXX"
}

EDIT:

Entering Connect -> Log/Failures looks like the system is not really performing as it should, because sometimes I get

And some other times I get an empty list. Going in the publish option, when it's working I get a list of documents/envelopes, and I see the last envelope I sent there, which looks fine.

回答1:

You can view your recent connect logs/failures at the Docusign Admin web application. See instructions to use the Admin site here

If your connect messages were not sent, to the listener URL you provided, they should show up in the failures section.

API : You can also view your connect logs/failure using the connectEvents api's

Here is some documentation for troubleshooting connect issues.

The capitalization of status codes is not an issue. They are case insensitive.