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

Error occurred while validating HTTP header: user-agent

Highlighted
Level 6

Error occurred while validating HTTP header: user-agent

Under which circumstances ThingWorx generates this errors when interacting with it using the REST API?

 

My Application log is full of this messages that appear more than one time per request. Also when I try to set properties using the REST API I realise some properties are not set if this error appears. 

Tags (2)
2 REPLIES

Re: Error occurred while validating HTTP header: user-agent

What is your ThingWorx version? Could you please try this in a different browser too, to see if the error persists? 

What particular rest call triggers the error?

Re: Error occurred while validating HTTP header: user-agent

Using the REST API (automated property setting) so using a different browser is out of the question.

The annoying thing is that the REST call does not trigger an error (the resulting status code is 200, OK). Surprisingly enough the property value is not set.

For the record, my request is a PUT request against url https://myserver/Thingworx/Things/MyThing/Properties/*

The body of the request is of JSON type with content  {"PropertyName": {"object": [...]}}

The module I use for wrapping the REST access is heavily unit tested with similar case having been tried over and over.

Affected ThingWorx versions are 7.4.5-b33 and 8.2.1-b140