Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Websocket logs when APIM is unable to connect to client #2907

Closed
ksankeerth opened this issue May 21, 2024 · 0 comments · Fixed by wso2/carbon-apimgt#12508
Closed

Comments

@ksankeerth
Copy link

ksankeerth commented May 21, 2024

Problem

Current error logs doesn't log API URI. Therfore, We cannot identify the API.

TID: [-1234] [] [2024-05-21 12:03:05,310] ERROR {org.wso2.carbon.inbound.endpoint.protocol.websocket.InboundWebsocketSourceHandler} - 3ca6f6fffe27d376-00005e52-00000002-3672fc233b9e8165-bb93e452 -- Error encountered while processing inbound websocket connection org.wso2.carbon.apimgt.gateway.handlers.security.APISecurityException: No matching resource found in the API for the given request
	at org.wso2.carbon.apimgt.gateway.handlers.WebsocketUtil.sendHandshakeErrorMessage_aroundBody30(WebsocketUtil.java:385)
	at org.wso2.carbon.apimgt.gateway.handlers.WebsocketUtil.sendHandshakeErrorMessage(WebsocketUtil.java:1)
	at org.wso2.carbon.apimgt.gateway.handlers.WebsocketInboundHandler.handleHandshakeError_aroundBody6(WebsocketInboundHandler.java:392)
	at org.wso2.carbon.apimgt.gateway.handlers.WebsocketInboundHandler.handleHandshakeError(WebsocketInboundHandler.java:1)
	at org.wso2.carbon.apimgt.gateway.handlers.WebsocketInboundHandler.channelRead_aroundBody4(WebsocketInboundHandler.java:226)
	at org.wso2.carbon.apimgt.gateway.handlers.WebsocketInboundHandler.channelRead(WebsocketInboundHandler.java:1)
	at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:251)

Solution

Include API URI in Error

Affected Component

APIM

Version

3.2.0 / 3.2.1

Implementation

No response

Related Issues

No response

Suggested Labels

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment