Skip to main content

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 

 

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)

     


Reply