admin管理员组

文章数量:1122846

I am getting "File or directory not found" 404 on each envelopeid I try to call with ListDocuments. The envelopeId's do exist and can be viewed on docusign's site.

```
AuthUtil auth = new AuthUtil(_keyVaultConfiguration);
OAuth.OAuthToken token = auth.GetTokenFromJwt();
Account account = auth.GetAccountInfo(token);

DocuSignClient docuSignClient = new DocuSignClient(account.BaseUri);
docuSignClient.Configuration.DefaultHeader.Add("Authorization", "Bearer " + token.access_token);

EnvelopesApi envelopesApi = new EnvelopesApi(docuSignClient);

// known good envelopeId
Envelope envvelope = envelopesApi.GetEnvelope(account.AccountId, eml.TEnvelopeId);

foreach (EnvelopeDocument doc in envelope.EnvelopeDocuments)...

Code throws the 404 before the foreach is reached.

What would cause this?

** Solved:  It turns out a proxy service , on my side somewhere was removing the auth header!  I am working with IT..

I am getting "File or directory not found" 404 on each envelopeid I try to call with ListDocuments. The envelopeId's do exist and can be viewed on docusign's site.

```
AuthUtil auth = new AuthUtil(_keyVaultConfiguration);
OAuth.OAuthToken token = auth.GetTokenFromJwt();
Account account = auth.GetAccountInfo(token);

DocuSignClient docuSignClient = new DocuSignClient(account.BaseUri);
docuSignClient.Configuration.DefaultHeader.Add("Authorization", "Bearer " + token.access_token);

EnvelopesApi envelopesApi = new EnvelopesApi(docuSignClient);

// known good envelopeId
Envelope envvelope = envelopesApi.GetEnvelope(account.AccountId, eml.TEnvelopeId);

foreach (EnvelopeDocument doc in envelope.EnvelopeDocuments)...

Code throws the 404 before the foreach is reached.

What would cause this?

** Solved:  It turns out a proxy service , on my side somewhere was removing the auth header!  I am working with IT..
Share Improve this question edited Nov 25, 2024 at 15:33 Tim Brown asked Nov 21, 2024 at 20:00 Tim BrownTim Brown 135 bronze badges 1
  • Updated, seeing same result, not found. – Tim Brown Commented Nov 21, 2024 at 22:25
Add a comment  | 

1 Answer 1

Reset to default 0

If you want information for a specific envelope use Envelopes:get not :list.

Envelopes:list takes an optional request object and query parameters. Use the eSign request logging feature to see what you're actually sending in your Envelopes:list API call. -- You're not calling it correctly

本文标签: docusignapiDocusign EnvelopesApiListDocuments fails with NOT FOUNDStack Overflow