Unable to connect to websocket gateway on a NestJS Application deployed via App Runner

0

I implemented a simple websocket gateway on a NestJS application and it successfully connects when deployed locally but when deployed on AWS App Runner, it returns a 403 error. See image attached. Web socket not connecting via App Runner

Web socket connects locally

Emeka
asked 4 months ago349 views
1 Answer
0

There are several possible causes of a 403 error that may appear when attempting to connect to a WebSocket gateway in a NestJS application that has been set up on AWS App Runner. To troubleshoot and fix the issue, follow these steps:

Verify Network Configuration and Security Groups: Make sure that the WebSocket port that you have defined for incoming traffic is open in the security groups linked to your App Runner service. Make sure that no firewalls or network ACLs (access control lists) are preventing WebSocket connections.

Check WebSocket Endpoint: Make that the URL you are using to connect to the WebSocket endpoint corresponds to the settings of your deployed application.

answered 4 months ago
  • Hi Ronald, Thanks for the answer but I cant find where the Network Configuration and security groups settings are on the console. Could you guide me through on how to access them?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions