0 Replies Latest reply on Jan 12, 2018 11:01 PM by guyhu RSS
    guyhu Newbie

    Bad request (400) from EMS 5.x when querying LocalEms for isConnected property



    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



    <title>400 Bad request</title>

    <style type=text/css>




    pre{font-family:Courier New,cour}




    <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>




    Here are the errors logged in the event viewer:


    twInfoTable_ToJson: NULL of bad infotable





    Expected 18 bytes of content but got 0



    Do you know what could be the issue here ?


    Thank you.