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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Error occurred while validating HTTP header: user-agent

jcborras
7-Bedrock

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. 

ACCEPTED SOLUTION

Accepted Solutions

I haven't used postman and I am closing this issue since I tracked down the problem to loose JSON management. As a matter of fact I can't even prove without a hint of doubt that user agent based validation was related.

Thanks for your support anyway. Appreciated.

View solution in original post

4 REPLIES 4
posipova
20-Turquoise
(To:jcborras)

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?

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

posipova
20-Turquoise
(To:jcborras)

I apologize for the delayred response.Does it work with Postman? I just want to test it with a different tool to ensure it's not the structure issue.

I haven't used postman and I am closing this issue since I tracked down the problem to loose JSON management. As a matter of fact I can't even prove without a hint of doubt that user agent based validation was related.

Thanks for your support anyway. Appreciated.

Announcements


Top Tags