docusign-esign-csharp-client: When using Docker: Error while requesting server, received a non successful HTTP code with response Body:

Hello I following steps to JWT Authenction, I have done this already before with another app same code but I’m getting the following with actually no error so don’t what happening, check logs on dev site but nothing.

Error while requesting server, received a non successful HTTP code with response Body:

There is no error returned, I have tired switch out private keys and everything still a no go. image image image

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 29 (6 by maintainers)

Most upvoted comments

@garg-mudit I retested on a new Windows machine with docker, and it worked fine,

After digging around with OpenSLL I found it had something to do with my company policy, so I have to work on getting the correct certs from them I think it might help after that.

Hi,

Are you using the same Integrator Key for the application which is not containerized ?

I will be trying to reproduce the issue in Docker but I am assuming this is a consent issue.

Please check if consent is already provided to the IK being used in application running on Docker.

Thank You.

Yes same keys no change

@garg-mudit & @mike-mej

Okay, I found the actual problem, I was expecting the error was going to be this, but I need to spend more time fixing this issue in my container…

Actually, Error: “The SSL connection could not be established; see inner exception.”

If possible, maybe we can actually return this error in the DLL, so we don’t go down a rabbit hole? It’s a legit error that can happen.

Since this is a issue with my container I think we can just close it out now.

Also, Can you please try to use the Test project within this repo within Docker to make your API calls ? As you initially mentioned that you are only getting Error while requesting server, received a non successful HTTP code with response Body: with no other content within this message thus running the test code (which relies on DLL) in debug mode might be helpful as it will show you actual error as its thrown. within DocuSignClient file.

As I am unable to reproduce the issue, thus I am trying to come up with various ways by which we can get some lead on actual issue on your end. Thanks for the patience.

see below all that comes from the exception it doesn’t give me any kind of error not at all.

<HTML> <head> <title>Document</title></head> <body>

| Name | Value | Type – | – | – | – ◢ | $exception | {DocuSign.eSign.Client.ApiException: Error while requesting server, received a non successful HTTP code with response Body: at DocuSign.eSign.Client.DocuSignClient.RequestJWTUserToken(String clientId, String userId, String oauthBasePath, Byte[] privateKeyBytes, Int32 expiresInHours, List`1 scopes) at Program.<Main>$(String[] args) in C:\Users\mthomas\source\WorkRepos\ConsoleApp1\ConsoleApp1\Program.cs:line 15} | DocuSign.eSign.Client.ApiException

</body> </HTML>