Article - CS369487
Error caught via try/catch returned as JSON contains sensitive Thingworx information
Modified: 20-Jun-2022
Applies To
- ThingWorx Platform 8.5 to 9.3
Description
- Error caught via try/catch returned as JSON contains sensitive Thingworx information
- Below example service returns a 500 HTTP status with JSON message containing Thingworx information instead of the error message :
try {
var t = thisdoesnotexist;
} catch (error) {
result = {
err: error,
};
}
This is a printer-friendly version of Article 369487 and may be out of date. For the latest version click CS369487