Skip to main content
Solved

Error Setting Up Request to Docusign


Forum|alt.badge.img+2

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.

View Original
Is this content helpful?

4 replies

JohnSantos
Valued Contributor
Forum|alt.badge.img+18
  • Valued Contributor
  • 973 replies
  • July 23, 2024

@kayluh 

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


Forum|alt.badge.img+2
  • Author
  • Newcomer
  • 5 replies
  • 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


Forum|alt.badge.img+2
  • Author
  • Newcomer
  • 5 replies
  • 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
Valued Contributor
Forum|alt.badge.img+18
  • Valued Contributor
  • 973 replies
  • Answer
  • 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.