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
已提問 4 個月前檢視次數 373 次
1 個回答
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.

已回答 4 個月前
  • 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?

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南