Jump to content
MikeMon

TRESTClient Exception: REST request failed: Error sending data: (12175) A security error occurred

Recommended Posts

We have seen a similar issue.

 

The app was using THTTPRio, and it raised an error during HTTP post operation (12175 = ERROR_WINHTTP_SECURE_FAILURE), but not on all machines. The investigation indicated that:

1. The WinHttpSendRequest function spawns background worker threads that calls into Crypt32.dll. 

2. The internal functions of Crypt32.dll raise Access Violation exception for an unknown reason.

3. The AV exception is returned as 12175/ERROR_WINHTTP_SECURE_FAILURE from the WinHttpSendRequest function.

 

In our case the "reason" for Access Violation was the loaded DbgHelp.dll from Windows SDK (not the one from \Windows folder).

 

DLLs were exactly the same in all cases (all PCs), so something else is causing it to fail. Registry settings, may be?

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×