jondkinney/docusign_rest

Issue with get_recipient_view

Closed this issue · 2 comments

I always to get the error
{ "errorCode": "UNKNOWN_ENVELOPE_RECIPIENT", "message": "The recipient you have identified is not a valid recipient of the specified envelope. Envelope recipient could not be determined. 'clientUserId', 'email', or 'userName' in request and envelope may not match." }
when I call client.get_recipient_view unless I explicitly set client_id: to blank/nil when I'm making the call. The code sets clientUserId to the email by default and that seems to be tripping me up.

I looked into it further and I think the issue arises from the assumption that only those who set embedded: true when creating signers will call get_recipient_view and that's not true in my case.

@sjobe your diagnosis sounds very plausible as I only use this gem on one project where all the signers are embedded. Have you come up with a patch to handle non-embedded signers? If so, I'd be happy to accept a pull request. If not, I might be able to help you out with that. Let me know.

sjobe commented

Hmm, it's been so long, I've totally lost context [and the code] on this one. closing :-)