技术文章 - CS302464
错误“消息 :: 索引查询中的非法字符<index number>:" 当在 ThingWorx Composer 中调用服务时
已修改: 20-Mar-2023
适用于
- ThingWorx Platform 8.4 to 9.3
说明
- 在自定义服务中调用内置GetJSON()服务时,它会失败并出现以下错误 在/ThingworxStorage/logs/ApplicationLog.log中
[L:错误] [O:ctwBaseService] [I:] [U:管理员] [S:] [T:https-jsse-nio-8443-exec-7] [上下文: com.thingworx.webservices.context.HttpExecutionContext @5868aac3][消息:服务脚本执行错误 <[javascript 服务名称]> :: 查询中的非法字符 <index number>: <URL>]
- Resources["ContentLoaderFunctions"].GetJSON(params)服务失败并在 ThingWorx Composer 中执行时抛出以下错误消息作为输出:
索引 <index number> 查询中的非法字符:<URL> - 有关更多详细信息,请参阅脚本错误日志
- 当GetJSON ()服务中作为参数提供的URL包含空格或双引号时,它将失败并在/ThingworxStorage/logs/ScriptLog.log中显示以下错误
[L: ERROR] [O: SctdeDSLProcessor] [I: <Thing Name>] [U: Administrator] [S: ] [T: http-nio-80-exec-6] [消息:服务脚本中的执行错误 [ContentLoader ] :: 查询中的非法字符<index number>: <URL>
- 无法使用 Twilio Extension SendMessage服务发送文本消息,并在 Composer 上显示以下错误:
索引 <index number> 查询中的非法字符:<URL> - 有关更多详细信息,请参阅脚本错误日志
- 无法发送带有空格字符的短信
- 适用于邮递员
- 如何为GetJSON () 参数构建URL
这是文章 302464 的 PDF 版本,可能已过期。最新版本 CS302464