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
Greetings,
I am not able to do a simple GetJSON "Content Loader Function" for a service.
It shows
Input:
var params = {
url: "https://<Domain>/<call>",
};
var result = Resources["ContentLoaderFunctions"].LoadJSON(params);
Output was marked as a JSON output.
OutPut:
Error executing service <servicename> : Message :: <RequestedDomain> - See Script Error Log for more details.
When I ping the same url in a browser I am able to get a JSON reply with Status Code 200
But when I try the same with thingworx service it is showing Status Code 500 in the inspect Window
Anyhelp on this would be very much appreciated..
Thank you
Regards
Viswa
Solved! Go to Solution.
Try it first as a GetText with a String return and see what is returned. From there work towards making it work as true JSON.
But the error seems to indicate some network issue, is our Thingworx server blocked from doing this request?
Hi @Viswadeep.
If one of the previous responses allowed you to find a solution, please mark the appropriate one as the Accepted Solution for the benefit of others with the same issue.
Thank you for participating in our community!
Regards.
--Sharon