cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

C SDK error 1107 precondition failed

acooper1
1-Newbie

C SDK error 1107 precondition failed

Hi,

I'm having trouble with the C SDK. It's running on an ARM 9 Linux unit.

After some time of correct operation the error 1107 TW_PRECONDITION_FAILED occurs continuously.

What does this error mean and does anyone have any ideas on how to debug this?

Thanks!

3 REPLIES 3

Hi,

we had the same error with the dotnet SDK.

Our problem was the chunk size. The default is 16K but we need more, so we change the MaxMessageSize ot 1MB.

After that change our problem was cleared.

I hope this change can fix your problem too.

Kind regards

Sven

Thank you very much for reply and the possible solution, I shall trial this over the next few days.

I have found the following definitions in the C SDK (twDefaultSettings.h) so I'll go ahead and change these to be larger.

/**

* \brief The maximum size of a complete message whether it is broken up as a

* multipart message or not.  Messages larger than this will be rejected.

* Measured in Bytes.

*/

#define MAX_MESSAGE_SIZE 16384

/**

* \brief The maximum size of a message chunk.  Messages large than this will

* be broken up into a multipart message.  Measured in Bytes.  This value

* should be the same as the server side configuration which defaults to 8192.

*/

#define MESSAGE_CHUNK_SIZE          8192

Do you know where on the server you change the MESSAGE_CHUNK_SIZE?

Thanks,

Alex

Hi Alex,

we change the MAX_MESSAGE_SIZE on the edge client.

We change nothing on the TWX server instance.

Sven

Top Tags