Layer7 API Gateway: Websocket connection fails with variables in the outbound URL
search cancel

Layer7 API Gateway: Websocket connection fails with variables in the outbound URL

book

Article ID: 95732

calendar_today

Updated On:

Products

CA Rapid App Security CA API Gateway

Issue/Introduction

When trying to use context variables in the Websocket outbound URL you will see errors similar to the below in the ssg log and the connections will fail.

WARNING 156 com.l7tech.external.assertions.websocket.server.InboundSocketCreator: Exception caught creating inbound WebSocket:java.net.URISyntaxException: Cannot resolve outbound URL.: Not all context variables have been resolved:wss://ServerName:${port}${path}
 

Environment

Release:
Component: APIMBL

Resolution

The versions of the Websocket assertion that ships with the base version of the 9.0 & 9.1 Gateway does not support this feature (variablized outbound URL). Newer versions of the Gateway support this functionality out of the box.