Troubleshooting Blank Page Issue with Node-RED Service Behind AWS API Gateway

Hello everyone,
I’m struggling to get AWS API Gateway to properly load my Node-RED service. I’m encountering an issue where I just see a blank page.
When I access the application directly via its IP address (bypassing API Gateway), it works fine. However, through API Gateway, the blank page persists.
Can someone help me troubleshoot this?

Check for errors in the Browser Developer Console.

There are no errors in the browser developer console. There's iust a blank page. works fine on direct IP address without api gateway ( blank page ).
PFA



Uploading: Screenshot 2024-11-27 at 4.04.56 PM.png…

In a command window what do you get for
wget <gateway_url>

Copy/paste the result please, not screenshot.

connected.
HTTP request sent, awaiting response... 200 OK
Length: 0 [application/json]
Saving to: ‘index.html’

index.html [ <=> ] 0 --.-KB/s in 0s

2024-11-27 16:44:19 (0.00 B/s) - ‘index.html’ saved [0/0]

Well that is the problem, it is returning an empty response. It obviously isn't a node-red issue as it works with the ip.

What does the complete output from the command look like? Remove any sensitive data before posting.

Can you share any document or steps to configure AWS API Gateway with NodeRed? I am unable to find any documents on it. my setup is AWS API Gateway -> AWS ECS -> NodeRed with Nestjs

No, I don't use AWS. If you want me to do my best to help then please answer the previous question. The fact that you are using node-red as a server should be immaterial.

we were finally able to get it loaded, but now its failing for websockets. I think we will need to have websockets api gateway installed separately and then point to same route somehow.