I've noticed what I think is a bug on the HS end recently (although unfortunately I have little confidence of when it started happening, partly because it seems to be intermittent).
Our normal workflow is
We countersign and submit HS doc (pledger already having signed)
We receive a callback a few moments later
We use the callback to upload the doc as a PDF to Salesforce
But at some point in the last few months, some (not all) of the documents started reaching Salesforce without the countersignature having been added. I checked the signature request ID and confirmed that they were the right documents, and redownloading them and requesting the same process later yielded a fully completed document.
I've got around this by having a slightly delayed background job re-run until the doc data had a True `value` in the document data's 'is_complete' field and it seems to have been fine since then, so given that and the intermittentness of the issue it seems like there could be is there's a race condition, such that the callback triggers before the doc is saved by with the latest updates.
Is this a known behaviour (or am I getting it all wrong) - and if so is there a better practice than the hack I'm using? If not, then it's prob worth looking into!
Please sign in to leave a comment.