Article - CS262115
Execution of ListSavedSearches service from the ptc-windchill-demo-thing fails with error 401 Authorization Required in Thingworx Navigate
Modified: 10-Apr-2019
Applies To
- Windchill Navigate (formerly ThingWorx Navigate) 1.4.0 to 9.1
- Windchill PDMLink 10.2 to 12.0
Description
- Execution of ListSavedSearches service from the ptc-windchill-demo-thing fails with error 401 Authorization Required.
- Problem with PTC Navigate and Windchill PDMLink integration using self signed client certificate.
- ListSavedSearches service reports following error in browser:

- Windchill PDMLink Server is configured with third party certificate and Thingworx Server is configured with self signed certificate.
- Thingworx Application.log reports following error:
[L: ERROR] [O: c.t.w.BaseService] [I: ] [U: Administrator] [S: ] [T: http-nio-8443-exec-4] [context: com.thingworx.webservices.context.HttpExecutionContext@7753d44a][message: Thing [ptc-windchill-demo-thing] is not running]
[L: ERROR] [O: c.t.w.BaseService] [I: ] [U: Administrator] [S: ] [T: http-nio-8443-exec-3] [context: com.thingworx.webservices.context.HttpExecutionContext@67013dfc][message: Execution error in service script [ptc-windchill-demo-thing ListSavedSearches] : Wrapped com.ptc.connected.plm.thingworx.JSONServerException: JSON Server error HTTP 401 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Authorization Required</title>
</head><body>
<h1>Authorization Required</h1>
<p>This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
<p>Additionally, a 401 Authorization Required
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>
Cause: JSON Server error HTTP 401 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Authorization Required</title>
</head><body>
<h1>Authorization Required</h1>
<p>This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
<p>Additionally, a 401 Authorization Required
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>
]
2018-03-16 13:05:22.678+0100 [L: ERROR] [O: c.t.w.BaseService] [I: ] [U: Administrator] [S: ] [T: http-nio-8443-exec-8] [context: com.thingworx.webservices.context.HttpExecutionContext@615b718f][message: Execution error in service script [ptc-windchill-demo-thing ListSavedSearches] : Wrapped com.ptc.connected.plm.thingworx.JSONServerException: JSON Server error HTTP 401 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Authorization Required</title>
</head><body>
[L: ERROR] [O: c.t.w.BaseService] [I: ] [U: Administrator] [S: ] [T: http-nio-8443-exec-3] [context: com.thingworx.webservices.context.HttpExecutionContext@67013dfc][message: Execution error in service script [ptc-windchill-demo-thing ListSavedSearches] : Wrapped com.ptc.connected.plm.thingworx.JSONServerException: JSON Server error HTTP 401 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Authorization Required</title>
</head><body>
<h1>Authorization Required</h1>
<p>This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
<p>Additionally, a 401 Authorization Required
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>
Cause: JSON Server error HTTP 401 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Authorization Required</title>
</head><body>
<h1>Authorization Required</h1>
<p>This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
<p>Additionally, a 401 Authorization Required
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>
]
2018-03-16 13:05:22.678+0100 [L: ERROR] [O: c.t.w.BaseService] [I: ] [U: Administrator] [S: ] [T: http-nio-8443-exec-8] [context: com.thingworx.webservices.context.HttpExecutionContext@615b718f][message: Execution error in service script [ptc-windchill-demo-thing ListSavedSearches] : Wrapped com.ptc.connected.plm.thingworx.JSONServerException: JSON Server error HTTP 401 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Authorization Required</title>
</head><body>
- Apache error log reports following error:
[error] [client x.x.x.x] no acceptable variant: /opt/ptc/windchill/codebase/webserver/apache/error/apachelogin.html
[debug] ssl_engine_io.c(1952): OpenSSL: I/O error, 5 bytes expected to read on BIO#26d96a8 [mem: 15d22b3]
[debug] ssl_engine_io.c(1952): OpenSSL: I/O error, 5 bytes expected to read on BIO#26d93d8 [mem: 15de463]
[info] [client 10.16.134.11] (OS 10060)A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. : SSL input filter read failed.
[debug] ssl_engine_io.c(1952): OpenSSL: I/O error, 5 bytes expected to read on BIO#26d96a8 [mem: 15d22b3]
[debug] ssl_engine_io.c(1952): OpenSSL: I/O error, 5 bytes expected to read on BIO#26d93d8 [mem: 15de463]
[info] [client 10.16.134.11] (OS 10060)A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. : SSL input filter read failed.
- Apache access log reports following error:
GET /Windchill/sslClientAuth/servlet/rest/search/saved-searches?%24select=%2Cname%2CobjectId&wt.effectiveUid=Administrator HTTP/1.1" 406 - 3007
- Executing ValidateConnection Service in ptc-windchill-integration-connector failed with error 401-Unauthorized
- Integration runtime log reports following error:
DEBUG c.t.i.r.b.HttpClientConfiguration - Try again because of 401: false
DEBUG o.a.c.c.h.HttpProducer - Http responseCode: 401
DEBUG c.t.i.r.c.HttpConnectionResponseTypeConverter - ValidateConnection : HTTP Response Code [401], HTTP Response Text [Unauthorized]
DEBUG o.a.c.c.h.HttpProducer - Http responseCode: 401
DEBUG c.t.i.r.c.HttpConnectionResponseTypeConverter - ValidateConnection : HTTP Response Code [401], HTTP Response Text [Unauthorized]
This is a printer-friendly version of Article 262115 and may be out of date. For the latest version click CS262115