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

**URL:** <https://discourse.nodered.org/t/troubleshooting-blank-page-issue-with-node-red-service-behind-aws-api-gateway/93507>\
**Category:** General\
**Created:** [27 November 2024 09:35 UTC](https://discourse.nodered.org/t/troubleshooting-blank-page-issue-with-node-red-service-behind-aws-api-gateway/93507 "2024-11-27T09:35:04Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![vidit.khemka](https://avatars.discourse-cdn.com/v4/letter/v/e5b9ba/32.png) [@vidit.khemka](https://discourse.nodered.org/u/vidit.khemka)\
**Post date:** [27 November 2024 09:35 UTC](https://discourse.nodered.org/t/troubleshooting-blank-page-issue-with-node-red-service-behind-aws-api-gateway/93507/1 "2024-11-27T09:35:04Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [27 November 2024 09:53 UTC](https://discourse.nodered.org/t/troubleshooting-blank-page-issue-with-node-red-service-behind-aws-api-gateway/93507/2 "2024-11-27T09:53:30Z")

</div>

Check for errors in the Browser Developer Console.

---

<div class="post-metadata">

**Author:** ![ramakant](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@ramakant](https://discourse.nodered.org/u/ramakant)\
**Post date:** [27 November 2024 10:36 UTC](https://discourse.nodered.org/t/troubleshooting-blank-page-issue-with-node-red-service-behind-aws-api-gateway/93507/3 "2024-11-27T10:36:21Z")

</div>

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

 ![Screenshot 2024-11-27 at 4.04.56 PM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/2/92ba5621b69600edf2e9575a9ea140bb41bdb314.png)  
 ![Screenshot 2024-11-27 at 4.05.17 PM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/0/301a547359507d8f6c0322fbf1e4eb65538fbb24.png)  
Uploading: Screenshot 2024-11-27 at 4.04.56 PM.png…

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [27 November 2024 11:06 UTC](https://discourse.nodered.org/t/troubleshooting-blank-page-issue-with-node-red-service-behind-aws-api-gateway/93507/4 "2024-11-27T11:06:30Z")

</div>

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

Copy/paste the result please, not screenshot.

---

<div class="post-metadata">

**Author:** ![ramakant](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@ramakant](https://discourse.nodered.org/u/ramakant)\
**Post date:** [27 November 2024 11:16 UTC](https://discourse.nodered.org/t/troubleshooting-blank-page-issue-with-node-red-service-behind-aws-api-gateway/93507/5 "2024-11-27T11:16:07Z")

</div>

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]

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [27 November 2024 11:33 UTC](https://discourse.nodered.org/t/troubleshooting-blank-page-issue-with-node-red-service-behind-aws-api-gateway/93507/6 "2024-11-27T11:33:54Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ramakant](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@ramakant](https://discourse.nodered.org/u/ramakant)\
**Post date:** [27 November 2024 13:05 UTC](https://discourse.nodered.org/t/troubleshooting-blank-page-issue-with-node-red-service-behind-aws-api-gateway/93507/7 "2024-11-27T13:05:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [27 November 2024 13:18 UTC](https://discourse.nodered.org/t/troubleshooting-blank-page-issue-with-node-red-service-behind-aws-api-gateway/93507/8 "2024-11-27T13:18:02Z")

</div>

> [@ramakant](#):
>
> Can you share any document or steps to configure AWS API Gateway with NodeRed?

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.

---

<div class="post-metadata">

**Author:** ![ramakant](https://avatars.discourse-cdn.com/v4/letter/r/dc4da7/32.png) [@ramakant](https://discourse.nodered.org/u/ramakant)\
**Post date:** [28 November 2024 06:42 UTC](https://discourse.nodered.org/t/troubleshooting-blank-page-issue-with-node-red-service-behind-aws-api-gateway/93507/9 "2024-11-28T06:42:33Z")

</div>

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.

 ![Screenshot 2024-11-28 at 12.11.53 PM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/9/f972f4a20bb3898d190e91e79542a55533b4cf3c.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [26 February 2025 06:43 UTC](https://discourse.nodered.org/t/troubleshooting-blank-page-issue-with-node-red-service-behind-aws-api-gateway/93507/10 "2025-02-26T06:43:28Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
