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.
If is enabled and the host name on the server certificate does not match the host provided in twApi_Initialize(), the TLS handshake fails, and the connection (twApi_Connect()) fails with this error.
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.
Was this helpful?