"The underlying connection was closed: An unexpected error occurred on a receive."

Hi Pipedrive Developer Community,

I’m having some issues with making some API calls to POST data into our Pipedrive instance from a remote server environment. The error that is being returned in the response is “The underlying connection was closed: An unexpected error occurred on a receive.”

The codebase that is using .NET 4.8, which I believe uses TLS 1.2 by default and our server that is making the requests is also using TLS 1.2.

However the same code runs fine when run from a local project/local code build.

I’ve also tried forcing the code to use TL1.2 just in case, to no avail.

Does the Pipedrive API still require a target version of TLS 1.2? are there any other requirements for the web request to be successful?

Hi team,

Please close or delete this thread as it is no longer required.

I’ve worked out the issue (related to webhook controllers for each service).