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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

ContentLoader LoadText failed to run

htran-21
15-Moonstone

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

ACCEPTED SOLUTION

Accepted Solutions
htran-21
15-Moonstone
(To:CRArko)

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

View solution in original post

3 REPLIES 3
CRArko
17-Peridot
(To:htran-21)

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-21
15-Moonstone
(To:CRArko)

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

CRArko
17-Peridot
(To:htran-21)

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.

Announcements


Top Tags