Solved
Thingworx set a custom return code and response
- December 6, 2019
- 8 replies
- 4507 views
Hello,
In a service I need to return an error with status code = 500 and return type JSON.
Actually my service returns JSON but the response I really get is "Error executing service getError. Message :: {"test":"error"} - See Script Error Log for more details." and what I want to get is just the JSON {"test":"error"}
I succeeded to have this work if I call a service on a resource but as soon as I call the service of the resource from a service of a Thing it doesn't work.
Any ideas?
Thanks
Best regards

