Article - CS405030

Failed to get data from Windchill via ODataConnector in ThingWorx with error "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]"

Modified: 29-Mar-2024   


Applies To

  • ThingWorx Platform 9.5 to 9.3

Description

  • When trying to fetch Windchill data from ThingWorx through ODataConnector, the following error occurs for specific users
    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]
This is a printer-friendly version of Article 405030 and may be out of date. For the latest version click CS405030