docusign-esign-node-client icon indicating copy to clipboard operation
docusign-esign-node-client copied to clipboard

Envelopes API: `getAttachment()` has invalid return type

Open jan-lewandoski opened this issue 3 years ago • 1 comments

Problem description

The getAttachment() method from EnvelopesApi has invalid return type:

var returnType = null; // Should not be null here

As a result, empty responses are returned with a status of 200 OK and an empty body.

The solution

It seems like the problem can be solved by changing the return type:

var returnType = Object;

I can't seem to find any dedicated type (e.g. EnvelopeAttachmentResult) but I guess it would be the right choice in this case.

I'm happy to discuss other potential solutions 👍

jan-lewandoski avatar Jan 07 '23 11:01 jan-lewandoski

Hello @jan-lewandoski thank you for reaching out to us regarding this issue. We will reach out to the respective API team to understand why a return type similar to the one indicated by the getAttachments endpoint is not present here

acooper4960 avatar Jan 17 '23 21:01 acooper4960