docusign / docusign-esign-csharp-client

The Official Docusign C# Client Library used to interact with the eSignature REST API. Send, sign, and approve documents using this client.
https://developers.docusign.com/docs/esign-rest-api/sdks/csharp/
MIT License
130 stars 159 forks source link

404 error Envelopes API #442

Closed rudyp321 closed 5 months ago

rudyp321 commented 5 months ago

When calling the CreateEnvelope method, a 404 error is returned. The issue seems to be that path is set to "/v2.1/accounts/{accountId}/envelopes" but the {accountId} is never replaced with the actual value. Instead, you end up with this https://demo.docusign.net/v2.1/accounts/{accountId}/envelopes.

InbarGazit commented 5 months ago

can you share the C# code you're running?

InbarGazit commented 5 months ago

CreateEnvelope() is one of the most popular methods, so if it has a bug - we should know ASAP

rudyp321 commented 5 months ago

I'm using the SendEnvelopeForEmbeddedSigning method of the EmbeddedSigningCeremony.cs file I found in the repo. I've attached it here.

EmbeddedSigningCeremony.zip

rudyp321 commented 5 months ago

Any guess as to what might be going on? Any help is appreciated.

garg-mudit commented 5 months ago

Hi @rudyp321, I tested the code you provided and successfully used the CreateEnvelope method. Could you please share the basePath you are using? I suspect there may be an issue with it. Additionally, could you attach a screenshot of the error?

Here are some helpful links/steps that can help you in resolving the issue:

garg-mudit commented 5 months ago

Hello @rudyp321,

I wanted to follow up on my previous message. Did you have a chance to review it? Were the links helpful, or are you still experiencing the same issue?

If the problem persists, could you please provide the following information:

Thank You.

rudyp321 commented 5 months ago

Hello, Mudit,

Thank you very much for your help. The issue was the basePath. I was missing the /api. Added that and it worked.

On Tue, May 7, 2024 at 2:28 AM Mudit Garg @.***> wrote:

Hello @rudyp321 https://github.com/rudyp321,

I wanted to follow up on my previous message. Did you have a chance to review it? Were the links helpful, or are you still experiencing the same issue?

If the problem persists, could you please provide the following information:

  • The basePath you are using, as I suspect there may be an issue with it.
  • Could you attach a screenshot of the error?
  • Which version of the package are you trying out?
  • Which .Net version are you using?
  • Do you have a Docker setup for this application?

Thank You.

— Reply to this email directly, view it on GitHub https://github.com/docusign/docusign-esign-csharp-client/issues/442#issuecomment-2097542404, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATNZAG3Q7XOVNYPW5ALRELZBBX7NAVCNFSM6AAAAABGQ7YIQSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJXGU2DENBQGQ . You are receiving this because you were mentioned.Message ID: @.***>

-- Regards,

Rudy Padrón