Skip to main content
New Voice
May 15, 2024
Solved

Envelopes GetDocument responds USER_AUTHENTICATION_FAILED

  • May 15, 2024
  • 5 replies
  • 991 views

I’m using the SDK C# and when sending a request Envelopes::GetDocument (link) to get the documents, this fails with error:

"errorCode":"USER_AUTHENTICATION_FAILED","message":"One or both of Username and Password are invalid. Invalid access token"

 

All other API calls before calling GetDocument are passing OK - for example when calling Envelopes::listDocument (before the GetDocument) to get the list of documents, that returns succesfully. But then with same starting point GetDocument fails.

We do checks for token validity etc. before calling these methods and only GetDocument respons with error. What could be the cause and what should we consider?

    Best answer by JohnSantos

    @TiinaK  - The error "USER_AUTHENTICATION_FAILED" with the message "One or both of Username and Password are invalid. Invalid access token" usually indicates an issue with how authentication credentials are handled or passed in the API request, specifically for the GetDocument method. 

    Verify if the token being used for GetDocument has the appropriate permissions or scope required. Sometimes, different API methods require tokens with different scopes or permissions.

    Even though other API calls are working, there might be a case where the token needs to be refreshed before calling GetDocument. Tokens can have varying lifetimes and might be expiring right before this call.

    I hope these tips help to troubleshoot your issue.

    5 replies

    JohnSantos
    Guru
    Guru
    May 15, 2024

    @TiinaK  - The error "USER_AUTHENTICATION_FAILED" with the message "One or both of Username and Password are invalid. Invalid access token" usually indicates an issue with how authentication credentials are handled or passed in the API request, specifically for the GetDocument method. 

    Verify if the token being used for GetDocument has the appropriate permissions or scope required. Sometimes, different API methods require tokens with different scopes or permissions.

    Even though other API calls are working, there might be a case where the token needs to be refreshed before calling GetDocument. Tokens can have varying lifetimes and might be expiring right before this call.

    I hope these tips help to troubleshoot your issue.

    Welcome to the DocuSign Community! Your feedback is highly valued. If you find my response helpful, please give it a "Like" and consider marking it as the "Best Answer" to assist others with similar issues.
    TiinaKNew VoiceAuthor
    New Voice
    May 27, 2024

    Thank you very much! It indeed was an expired token - the check was done in the beginning of the processing, but for this particular case the expiration had happened in the middle of it.

    Newcomer
    August 14, 2024

    Hi Docusign Team

    I would wish to get a support from you. I was trying to send a document for signature and upon completing all required fields, It failed to be sent to the recipients as per the screenshot here attached. Mayor you please help me to hande this case.

     

    Thanks

     

    Richard Bakundukize

    Supply Chain Coordinator

    World Vision International Burundi

    JohnSantos
    Guru
    Guru
    August 14, 2024

    @Richard Bakundukize 

    You might need to confirm that your account has not been closed. Check the AccoundID that corresponds to one of your active accounts.

    Welcome to the DocuSign Community! Your feedback is highly valued. If you find my response helpful, please give it a "Like" and consider marking it as the "Best Answer" to assist others with similar issues.
    Newcomer
    September 11, 2024

    we had a similar issue - we are creating contact in Icertis contract management solution and sending it for signature via DocuSign. It gives us error 

    "errorCode":"USER_AUTHENTICATION_FAILED","message":"One or both of Username and Password

    However, same user is able to send other contracts for signature perfectly fine.

     

    Error in Icertis -error code DOC000630 

    Error details- An error occurred while processing agreement for electronic signature.