Skip to main content
Question

400 with response Body: '{"errorCode":"USER_AUTHENTICATION_FAILED","message":"One or both of Username and Password are invalid."}'

  • December 26, 2024
  • 1 reply
  • 66 views

Forum|alt.badge.img+1

After I moved the program to production, when I called envelopesApi.createEnvelope(accountId, envelopeDefinition), I got this error.Error while requesting server, received a non successful HTTP code 400 with response Body: '{"errorCode":"USER_AUTHENTICATION_FAILED","message":"One or both of Username and Password are invalid."}' 

what should i do 

 

1 reply

Forum|alt.badge.img+1
  • Docusign Employee
  • 2 replies
  • December 27, 2024

Hi ​@zhang - If you are using the same code from your Demo App, double-check your Production account ‘Apps and Keys’ and adjust your code with the new information. Any of the following items may trigger this issue when incorrect: 

  • User ID 
  • API Account ID
  • Account Base URI (if you’re not using /userinfo/)
  • App Private Key (for JWT Auth)
  • Secret Keys (for Authorization Code Grant)