Skip to main content
New Voice
July 23, 2024
Solved

Error Setting Up Request to Docusign

  • July 23, 2024
  • 4 replies
  • 151 views

Trying to set up OAuth in application, and getting errors on the auth code exchange for access token. Tried the exact same request in Postman and getting 200s. My request url, headers, and body looks good and identical to the one I am sending through Postman...

Best answer by JohnSantos

@kayluh 

The error message you're encountering, "Failed to execute 'open' on 'XMLHttpRequest': Invalid URL," suggests that there is an issue with the URL being used to retrieve the DocuSign access token. This could be due to several reasons, such as an incorrectly formatted URL, an empty URL, or an issue with how the URL is being constructed in your code.

4 replies

JohnSantos
Guru
Guru
July 23, 2024

@kayluh 

Can you provide the error code and its description? It is most likely a refresh token error.

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.
kayluhNew VoiceAuthor
New Voice
July 23, 2024

The error code is not being displayed but the message is:
Error retrieving Docusign access token Failed to execute 'open' on 'XMLHttpRequest': Invalid URL

kayluhNew VoiceAuthor
New Voice
July 23, 2024

@JohnSantos 

 

The error code is not being displayed but I have an error message from my error handling:
Error retrieving Docusign access token Failed to execute 'open' on 'XMLHttpRequest': Invalid URL

JohnSantos
Guru
Guru
July 25, 2024

@kayluh 

The error message you're encountering, "Failed to execute 'open' on 'XMLHttpRequest': Invalid URL," suggests that there is an issue with the URL being used to retrieve the DocuSign access token. This could be due to several reasons, such as an incorrectly formatted URL, an empty URL, or an issue with how the URL is being constructed in your code.

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.