技术文章 - CS369487
通过 try/catch 捕获的错误返回为 JSON 包含敏感的 Thingworx 信息
已修改: 20-Jun-2022
适用于
- ThingWorx Platform 8.5 to 9.3
说明
- 通过 try/catch 捕获的错误返回为JSON包含敏感的 Thingworx 信息
- 下面的示例服务返回 500 HTTP 状态,其中 JSON 消息包含 Thingworx 信息,而不是错误消息:
try {
var t = thisdoesnotexist;
} catch (error) {
result = {
err: error,
};
}
这是文章 369487 的 PDF 版本,可能已过期。最新版本 CS369487