技术文章 - CS321502
在 ThingWorx 平台上执行服务后,出现“脚本执行在 <~ScriptTimeout> 秒后终止”
已修改: 23-Sep-2025
适用于
- ThingWorx Platform 8.5 to 10.0
说明
- ThingWorx 服务 30 秒后超时
- 预计需要较长时间执行的自定义函数(例如等待数据库)最终在 ThingWorx 平台中超时
- 通过自定义端点查询会话审计日志在 ThingWorx 平台中不起作用
- 使用 Thing 服务批量创建多个事物时出现超时错误,如何在 ThingWorx 中更改服务脚本超时
- 服务运行极其缓慢,查询超过 1000 行时超时
- 需要从 REST API 获取大量更改数据时服务超时
- ThingWorx 服务失败,并在 Composer 中显示以下错误
Error executing service. Message ::Execution of Script terminated after : <~ScriptTimeout> seconds. Timeout configured for <ScriptTimeout> seconds. - See Script Error Log for more details
- 位于<ThingworxStorage>\logs中的 ThingWorx Platform ApplicationLog.log显示以下内容:
[L: ERROR] [O: ctwThings] [I: ] [U: <User>] [S: ] [P: ] [T: https-jsse-nio-8443-exec-<Thread>] Execution of Script terminated after : <~ScriptTimeout> seconds. Timeout configured for <ScriptTimeout> seconds. [L: WARN] [O: ctwBaseService] [I: ] [U: <User>] [S: ] [P: ] [T: https-jsse-nio-8443-exec-<Thread>] Transaction has been marked as a failure for request /Thingworx/Things/<Entity Name>/Services/<Service Name>
这是文章 321502 的 PDF 版本,可能已过期。最新版本 CS321502