技术文章 - CS405030

无法通过 ThingWorx 中的 ODataConnector 从 Windchill 获取数据,并出现错误“您的路由交换失败。HTTP 错误 [为获取 csrf 令牌而提供的指定 URL 或令牌名称未返回有效令牌]”

已修改: 29-Mar-2024   


注意:本文已使用机器翻译软件翻译,以方便非英语客户阅读。但翻译内容可能包含语法错误或不准确之处。请注意, PTC对本文所含信息的翻译准确性及使用后果不承担任何责任。请在 此处 查看本文的英文原始版本以便参考。有关机器翻译的更多详情,请单击 此处
感谢您告诉我们。我们将尽快审阅此译文。

适用于

  • ThingWorx Platform 9.5 to 9.3

说明

  • 尝试通过 ODataConnector 从 ThingWorx 获取 Windchill 数据时,特定用户会出现以下错误
    2023-11-09 17:28:54.577+0900 [L: ERROR] [O: S.c.t.d.e.DSLProcessor] [I: <thing name>] [U: <user name>] [S: ] [P: <platform ID>] [T: https-jsse-nio-443-exec-3] Error in: <thing name> javascript service. Message ::Your route exchange has failed.  HTTP Error [The specified URL or the token name provided to fetch csrf token did not return a valid token
    
    
Application Log:
2024-03-17 16:21:42.922+0000 [L: WARN] [O: IntrusionDetector] [I: ] [U: <user>] [S: ] [P: ] [T: https-openssl-nio-8443-exec-10] [SECURITY FAILURE Anonymous:@unknown -> /ExampleApplication/IntrusionDetector] Invalid input: context=HTTP header value: cookie, type(HTTPHeaderValue_cookie)=^[a-zA-Z0-9()\-=\*\.\?;,+\/:&_|% ]*$, input=JSESSIONID=C78166E9E438D645EB8897142325F506; PF=BVVwZWIorvdjmnOmwOSVzt; BIGipServer~Collaboration~engage.<domain>_443=rd9o00000000000000000000ffff0a801007o443

Error Log:
2024-03-17 16:24:36.850+0000 [L: ERROR] [O: E.c.t.s.f.ValidatingHttpRequest] [I: ] [U: <user>] [S: ] [P: ] [T: https-openssl-nio-8443-exec-3] Error occurred while validating HTTP header: cookie. HTTP header value: cookie: Invalid input. Please conform to regex ^[a-zA-Z0-9()\-=\*\.\?;,+\/:&_|% ]*$ with a maximum length of 100000 
2024-03-17 16:24:37.803+0000 [L: ERROR] [O: E.c.q.l.c.Logger] [I: ] [U: <user>] [S: ] [P: ] [T: https-openssl-nio-8443-exec-6] Execution error in service script [GetAllTasksFromWindchill] :: Your route exchange has failed.  HTTP Error [The specified URL or the token name provided to fetch csrf token did not return a valid token]
这是文章 405030 的 PDF 版本,可能已过期。最新版本 CS405030