Skip to main content
16-Pearl
March 18, 2021
Question

ContentLoaderFunctions GetText is not working in Thingworx 9.1

  • March 18, 2021
  • 1 reply
  • 2476 views

Hello.

 

I am using Thingworx 9.1 version with Postgre SQL. 

GetText function is not working. Got error as "Invalid Content Type: application/json". The same code it was worked with Thingworx 8.5.1 version.

 

var propertiesAttr = Resources["ContentLoaderFunctions"].GetText(params);

 

Could you please suggest?

 

Thank you in Advance.

 

Regards,

Latha

1 reply

16-Pearl
March 18, 2021

@vi1 

 

GetText is working for me on 9.1, refer below screenshot, 

SachinSharma_2-1616062172579.png

 

 

Would you be able to the code you are using?

 

Regards,

Sachin

 

vi116-PearlAuthor
16-Pearl
March 18, 2021

Hello,

Thank you for response.

Here I am using url path is outside of thingworx server. When I give the url path is inside thingworx, its working correctly and also if I use GetJSON with outside server url path, working correctly. Observation with GetText service with outside server url path. Refer the below snippet which I am using for GetText.

vi1_0-1616065264226.png

 

 

16-Pearl
March 22, 2021

@vi1 

 

Are you not getting any output or are you getting an error? If it's the latter, please share the error message.

 

Regards,

Sachin