ThingWorx Edge C SDK > Error Codes > System Socket Errors
  
System Socket Errors
System Sockets are Operating System-provided networking APIs. The TW_ERROR_WRITING_TO_SOCKET error in the System Socket category is a general socket write error. All errors in this category are in the context of a connection to ThingWorx platform.
As appropriate, first check the network connection between the Thing where your application is running and ThingWorx platform to resolve the problem. If a proxy server is used between your edge device and ThingWorx platform, check that the proxy server is operating properly. If so, check the configuration for the connection to the proxy server.
Code
Message
Troubleshooting
1000
TW_ERROR_WRITING_TO_SOCKET
General socket write error encountered while writing to ThingWorx platform.
1001
TW_SOCKET_INIT_ERROR
An error occurred while initializing the socket. The network connection may have dropped.
1002
TW_INVALID_SSL_CERT
The SSL certificate provided by the server was not valid or was self-signed. Check your certificate settings.
1003
TW_SOCKET_NOT_FOUND
The socket was not found. The network connection may have dropped.
1004
TW_HOST_NOT_FOUND
The specified ThingWorx platform was not found. Check network connections and make sure that your application configuration specifies a valid host address.
1005
TW_ERROR_CREATING_SSL_CTX
An error occurred creating the SSL context.
1006
TW_ERROR_CONNECTING_TO_PROXY
An error occurred connecting to the specified proxy server. Make sure the proxy server address is correctly specified. Check network connections.
1007
TW_TIMEOUT_READING_FROM_SOCKET
An attempt to read from a socket timed out with no data available.
1008
TW_ERROR_READING_RESPONSE
An error occurred while reading the response from the proxy server. Check your proxy configuration in your application.
1009
TW_INVALID_PROXY_CREDENTIALS
The credentials presented to the proxy server were not valid. Check with the administrator for the proxy server and re-enter the credentials for the proxy server. NOTE: While the connection to the proxy server is not encrypted, the credentials are obfuscated using standard HTTP Basic, Digest, or NTLM encoding.
1010
TW_UNSUPPORTED_PROXY_AUTH_TYPE
The specified authentication type for the proxy server is not supported. Make sure that the authentication type is correctly specified in your application.
1011
TW_ENABLE_FIPS_MODE_FAILED
FIPS Mode could not be enabled. Ensure that you are using an OpenSSL library with FIPS validated cryptographic algorithms.
1012
TW_FIPS_MODE_NOT_SUPPORTED
FIPS Mode is not supported. Ensure that you are using an OpenSSL library with FIPS validated cryptographic algorithms.
1013
TW_DISABLE_FIPS_MODE_FAILED
FIPS mode could not be disabled. Ensure that the call to disable FIPS mode occurs during initialization and not later, after the application has started and connected to ThingWorx platform.