Skip to main content
15-Moonstone
November 16, 2018
Solved

ContentLoader LoadText failed to run

  • November 16, 2018
  • 3 replies
  • 1442 views

Hi,

 

I have a simple service in Thingworx for THING_17, the thing implements ContentLoader thing shape

 

"

return me.LoadText({
url: 'http://localhost:8089/',
header: '{ "Accept": "text/html" }',
timeout: 12000
});

"

and there is a local HTTP service listening at port 8089, PostMan can do a request and receive a response well, but i got an error when using LoadText service 

 

"Unable to Invoke Service Execute on THING_17 : null

 

Any help would be very appreciated.

 

My Bests,

Hung Tran

    Best answer by htran-21

    Hi Craig A.,

     

    Thank you for asking. I am using classic Composer. Fortunately, when i change URL to 127.0.0.1, it is working well.

     

    My Bests,

    Hung Tran

    3 replies

    5-Regular Member
    November 16, 2018

    Hello, Hung Tran.

     

    Are you using the classic Composer or the New Composer here?

     

    I ask because I have seen reports of this type of error when using the New Composer.

     

    Thanks,

     

    -- Craig A.

    htran-2115-MoonstoneAuthorAnswer
    15-Moonstone
    November 16, 2018

    Hi Craig A.,

     

    Thank you for asking. I am using classic Composer. Fortunately, when i change URL to 127.0.0.1, it is working well.

     

    My Bests,

    Hung Tran

    5-Regular Member
    December 5, 2018

    Hi, Hung Tran.

     

    Glad to hear that fixed it. When you get a chance, please mark your post as the accepted solution for the benefit of others who may see the same problem and can enjoy the fix.

     

    Thanks!

     

    -- Craig A.