ThingWorx Edge C SDK > Error Codes > Messaging Errors
  
Messaging Errors
The following table lists the error codes and messages for Messaging errors and provides some troubleshooting information.
Code
Message
Troubleshooting
300
TW_NULL_OR_INVALID_MSG_HANDLER
The message handler singleton has not been initialized.
301
TW_INVALID_CALLBACK_STRUCT
The callback structure was not valid. Check that your application properly implements the callback.
302
TW_ERROR_CALLBACK_NOT_FOUND
The specified callback was not found. Check the callback parameters passed to the function.
303
TW_INVALID_MSG_CODE
An attempt to set an invalid message code was made. Valid message codes are defined in twDefinitions.h. You should not see this internal error in your code.
304
TW_INVALID_MSG_TYPE
A function was called with an invalid message code. Valid message codes are defined in twDefinitions.h. You should not see this internal error.
305
TW_ERROR_SENDING_MSG
An error occurred while sending the message. Check the network connections and the destination host. If network connections and the destination host are working properly, check the configuration of the destination host to be sure it is correct.
306
TW_ERROR_WRITING_OFFLINE_MSG_STORE
An error occurred while writing to the offline message store.
307
TW_ERROR_MESSAGE_TOO_LARGE
The message was too large. Check that the size you configured for messages is adequate for all expected traffic. Consider increasing the size.
308
TW_WROTE_TO_OFFLINE_MSG_STORE
The message was not sent to ThingWorx platform, but was stored in the offline message store. The message will be delivered next time the websocket is connected.
309
TW_INVALID_MSG_STORE_DIR
The directory for the message store was not correct. Make sure the path is valid and that you have write permission.
310
TW_MSG_STORE_FILE_NOT_EMPTY
The on-disk file that is uses to store offline messages contains some messages that have not been sent yet. The file name cannot be changed.
311
TW_NULL_MSG_BODY
The body of the message is empty. The message is not saved.
312
TW_BIND_MESSAGE_FULL
313
TW_NULL_OR_INVALID_OFFLINE_MSG_STORE_SINGLETON
314
TW_ERROR_OFFLINE_MSG_STORE_FULL
The offline message store has reached its maximum size.
315
TW_ERROR_INFLATING_RECEIVED_MSG
An error occurred while extracting a compressed file that was received from ThingWorx platform.