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ヶ月前374ビュー
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?

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ