api-layer
api-layer copied to clipboard
Improve Websocket and identity mapper error messages
Describe the bug In case of response failure, these messages could occur very often under some condition, creating mess in the logs. One solution would be to change the level of these two messages to DEBUG, and possibly enhance the messages to include more information about the client that was performing the requests.
2023-12-11 13:14:21.017 <ZWEAGW1:https-jsse-nio-0.0.0.0-60254-exec-3:50726568> ZWESVUSR WARN (o.z.a.g.s.m.ExternalMapper) Unexpected response from the external identity mapper. Status: 401 body: {"userid":"","returnCode":8,"safReturnCode":8,"racfReturnCode":8,"racfReasonCode":32}
2023-12-11 13:14:35.382 <ZWEAGW1:HttpClient@65a64ae2-293:50726568> ZWESVUSR WARN (o.z.a.g.w.WebSocketProxyClientHandler) WebSocket transport error in session 70269354-6aed-1836-c35e-22af4dbf832d: Broken pipe
https://github.com/zowe/api-layer/wiki/Issue-management
This is still valid for Zowe 2.14. You can find also those error messages in case of invalid credentials:
2024-01-19 13:00:48.707 <ZWEAGW1:HttpClient@7c5a0592-356805:67503000> ZWESVUSR WARN (o.z.a.g.w.WebSocketProxyClientHandler) WebSocket transport error in session 56b778aa-150d-b9c8-8b89-91d8ee08a801: 401 null
2024-01-19 13:00:59.761 <ZWEAGW1:HttpClient@7c5a0592-357564:67503000> ZWESVUSR WARN (o.z.a.g.w.WebSocketProxyClientHandler) WebSocket transport error in session bb5aeeb3-47ac-e9a9-eb05-5e2724e12987: Failed to upgrade to websocket: Unexpected HTTP Response Status Code: 401 Unauthorized
2024-01-19 13:01:14.650 <ZWEAGW1:HttpClient@7c5a0592-357623:67503000> ZWESVUSR WARN (o.z.a.g.w.WebSocketProxyClientHandler) WebSocket transport error in session 87938566-f288-add1-0575-370b700f6b1e: Failed to upgrade to websocket: Unexpected HTTP Response Status Code: 401 null