Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
Hello,
I'm having an issue with EMS 5.3 (actually 5.x). Get isConnected from LocalEms returns a bad request error. The only time that isConnected works is if I do it prior to querying one of my things, but as soon as one of my things is called, then I get the 400 bad request from the EMS.
Here is the conversation:
PUT /Thingworx/Things/WSMyThing/Properties/Owner HTTP/1.1
Content-Type: application/json; charset=utf-8
VsDebuggerCausalityData: uIDPo1BWT6WWa59PshWphGDjO18AAAAA3CZOdnMRWUer5h/4bYAJWfrUoYWK2OJMo3+Rt5DXXcMACQAA
Host: localhost:8000
Content-Length: 18
Expect: 100-continue
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
{"Owner":"Whatup"}HTTP/1.1 200 OK
Date: 2015-10-20T13:50:46Z
Server: ThingWorx HTTP Server (Win32)
accept-encoding: gzip, deflate
expect: 100-continue
vsdebuggercausalitydata: uIDPo1BWT6WWa59PshWphGDjO18AAAAA3CZOdnMRWUer5h/4bYAJWfrUoYWK2OJMo3+Rt5DXXcMACQAA
Content-Type: application/json
Content-Length: 2
{}GET /Thingworx/Things/LocalEms/Properties/isConnected HTTP/1.1
Content-Type: application/json; charset=utf-8
VsDebuggerCausalityData: uIDPo1FWT6WWa59PshWphGDjO18AAAAA3CZOdnMRWUer5h/4bYAJWfrUoYWK2OJMo3+Rt5DXXcMACQAA
Host: localhost:8000
Accept-Encoding: gzip, deflate
HTTP/1.1 400 Bad request
Date: 2015-10-20T13:51:09Z
Server: ThingWorx HTTP Server (Win32)
accept-encoding: gzip, deflate
vsdebuggercausalitydata: uIDPo1FWT6WWa59PshWphGDjO18AAAAA3CZOdnMRWUer5h/4bYAJWfrUoYWK2OJMo3+Rt5DXXcMACQAA
Connection: close
Content-Type: text/html
Content-Length: 376
<html><head>
<title>400 Bad request</title>
<style type=text/css>
<!--
body{font-family:Verdana,sans-serif;font-size:9pt}
h3{font-size:13pt}
pre{font-family:Courier New,cour}
-->
</style>
</head><body>
<h3><br>400 Bad request</h3>
<p>Your browser sent a request that this server could not understand.</p>
<p><hr noshade size=1>ThingWorx HTTP Server (Win32)</p>
</body></html>
Here are the errors logged in the event viewer:
SDK
twInfoTable_ToJson: NULL of bad infotable
and
request_rec::parse_form_vars
Expected 18 bytes of content but got 0
Do you know what could be the issue here ?
Thank you.