Skip to main content
Nov 16, 2018 6:55 AM UTC
Solved

ContentLoader LoadText failed to run

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

    htran-21Answer
    Nov 16, 2018 10:00 PM UTC

    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

    Nov 16, 2018 3:13 PM UTC

    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-21AuthorAnswer
    Nov 16, 2018 10:00 PM UTC

    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

    Dec 5, 2018 8:28 PM UTC

    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.