# Cannot GET /ui/loading.html

**URL:** https://discourse.nodered.org/t/cannot-get-ui-loading-html/27719
**Category:** General
**Created:** [3 June 2020 16:13 UTC](https://discourse.nodered.org/t/cannot-get-ui-loading-html/27719 "2020-06-03T16:13:35Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![Andrei](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei/32/10446_2.png) [@Andrei](https://discourse.nodered.org/u/Andrei)
#### Post date: [3 June 2020 16:13 UTC](https://discourse.nodered.org/t/cannot-get-ui-loading-html/27719/1 "2020-06-03T16:13:35Z")

</div>

I wonder what is causing below error message in the Dev tools console for a Node-RED application that uses the dashboard. My environment:

> Raspberry PI  
> Node-RED version: v1.0.6  
> Node.js version: v12.16.3  
> Dashboard version 2.22.1 started at /ui

Apparently, there is nothing broken in the application as it runs flawlessly.  
Ok, I know.. if it is not broke don´t fix it... but at least wanted to understand what is going on. 😉

 ![q-01](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/c/2c1b36c0d6ba689fcdcceed9df21d797011ee93d.png)

When I try to access such endpoint from the browser I get the confirmation that the resource is not available:

Cannot GET /ui/loading.html

There is also a warning in dev tools console that I assume it is not related (but anyway I would prefer to understand the root cause and get rid of it).

 ![q-02](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/9/49ff0f1229fac126f164092c215545d6cc184dd7.png)

Cannot GET /ui/js/angular-chart.min.js.map

I would be grateful if anyone could share any thoughts.

---

<div class="post-metadata">

### Author: ![ristomatti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ristomatti/32/5857_2.png) [@ristomatti](https://discourse.nodered.org/u/ristomatti)
#### Post date: [3 June 2020 19:22 UTC](https://discourse.nodered.org/t/cannot-get-ui-loading-html/27719/2 "2020-06-03T19:22:21Z")

</div>

My first guess would be a buggy custom node. You could try searching from the Node-RED user dir if you'll find code referring to `loading.html`:

```auto
cd .node-red
grep -R "loading.html" *

```

If any file matches you can see from the directory name which node it is.

---

<div class="post-metadata">

### Author: ![cinhcet](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cinhcet/32/438_2.png) [@cinhcet](https://discourse.nodered.org/u/cinhcet)
#### Post date: [3 June 2020 19:24 UTC](https://discourse.nodered.org/t/cannot-get-ui-loading-html/27719/3 "2020-06-03T19:24:12Z")

</div>

> **[node-red/node-red-dashboard](https://github.com/node-red/node-red-dashboard#loading-the-dashboard)**
>
> A dashboard UI for Node-RED. Contribute to node-red/node-red-dashboard development by creating an account on GitHub.

  
nothing to worry about

---

<div class="post-metadata">

### Author: ![ristomatti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ristomatti/32/5857_2.png) [@ristomatti](https://discourse.nodered.org/u/ristomatti)
#### Post date: [3 June 2020 19:26 UTC](https://discourse.nodered.org/t/cannot-get-ui-loading-html/27719/4 "2020-06-03T19:26:49Z")

</div>

It sounds odd for it to give an error like that? Maybe clearing the browser cache might help?

---

<div class="post-metadata">

### Author: ![cinhcet](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cinhcet/32/438_2.png) [@cinhcet](https://discourse.nodered.org/u/cinhcet)
#### Post date: [3 June 2020 19:28 UTC](https://discourse.nodered.org/t/cannot-get-ui-loading-html/27719/5 "2020-06-03T19:28:09Z")

</div>

no, cleaning the browser cache does also not help. The only way to get rid of that message is by placing a loading.html in the dist folder or by changing the dashboard code

---

<div class="post-metadata">

### Author: ![ristomatti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ristomatti/32/5857_2.png) [@ristomatti](https://discourse.nodered.org/u/ristomatti)
#### Post date: [3 June 2020 19:29 UTC](https://discourse.nodered.org/t/cannot-get-ui-loading-html/27719/6 "2020-06-03T19:29:13Z")

</div>

Ah, so it's a placeholder for an optional loading screen or?

---

<div class="post-metadata">

### Author: ![cinhcet](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cinhcet/32/438_2.png) [@cinhcet](https://discourse.nodered.org/u/cinhcet)
#### Post date: [3 June 2020 19:29 UTC](https://discourse.nodered.org/t/cannot-get-ui-loading-html/27719/7 "2020-06-03T19:29:47Z")

</div>

yes, as in the link [https://github.com/node-red/node-red-dashboard#loading-the-dashboard](https://github.com/node-red/node-red-dashboard#loading-the-dashboard) I posted

---

<div class="post-metadata">

### Author: ![ristomatti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ristomatti/32/5857_2.png) [@ristomatti](https://discourse.nodered.org/u/ristomatti)
#### Post date: [3 June 2020 19:31 UTC](https://discourse.nodered.org/t/cannot-get-ui-loading-html/27719/8 "2020-06-03T19:31:39Z")

</div>

Ah sorry. The preview image was a bit misleading. I assumed it was just a link to the repo home and didn't open it... Shame on me.

---

<div class="post-metadata">

### Author: ![cinhcet](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cinhcet/32/438_2.png) [@cinhcet](https://discourse.nodered.org/u/cinhcet)
#### Post date: [3 June 2020 19:34 UTC](https://discourse.nodered.org/t/cannot-get-ui-loading-html/27719/9 "2020-06-03T19:34:50Z")

</div>

you are right, that preview image is indeed misleading. (I thought so when I saw the posted post, don't know how to get discord to not show these preview images :-))

About the other error, minimized javascript is hard to debug, since your dev tools will point you to a veeeery long single line js file, basically unreadable. For that so called source maps have been invented, which allow you to have the minimized code for the actual page but the unminified code for the debugger. Somehow that source map is not there, also nothing to worry about, as long as you don't want to debug angular-charts

---

<div class="post-metadata">

### Author: ![Andrei](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei/32/10446_2.png) [@Andrei](https://discourse.nodered.org/u/Andrei)
#### Post date: [3 June 2020 19:40 UTC](https://discourse.nodered.org/t/cannot-get-ui-loading-html/27719/10 "2020-06-03T19:40:25Z")

</div>

Thank you very much ! I can now deploy the application without fears.

---

<div class="post-metadata">

### Author: ![ristomatti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ristomatti/32/5857_2.png) [@ristomatti](https://discourse.nodered.org/u/ristomatti)
#### Post date: [3 June 2020 19:48 UTC](https://discourse.nodered.org/t/cannot-get-ui-loading-html/27719/11 "2020-06-03T19:48:34Z")

</div>

> [@cinhcet](#):
>
> since your dev tools will point you to a veeeery long single line js file, basically unreadable

Not necessarily unless it's also obfuscated: [Chrome DevTools &nbsp;|&nbsp; Chrome for Developers](https://developers.google.com/web/tools/chrome-devtools/javascript/reference#format)

---

<div class="post-metadata">

### Author: ![cinhcet](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cinhcet/32/438_2.png) [@cinhcet](https://discourse.nodered.org/u/cinhcet)
#### Post date: [3 June 2020 19:53 UTC](https://discourse.nodered.org/t/cannot-get-ui-loading-html/27719/12 "2020-06-03T19:53:20Z")

</div>

> [@ristomatti](#):
>
> not necessarily unless it's also obfuscated: [https://developers.google.com/web/tools/chrome-devtools/javascript/reference#format](https://developers.google.com/web/tools/chrome-devtools/javascript/reference#format)

cool, didn't know that 🙂

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [3 June 2020 21:59 UTC](https://discourse.nodered.org/t/cannot-get-ui-loading-html/27719/13 "2020-06-03T21:59:15Z")

</div>

Correct it's just a placeholder to load a loading screen from if you have a slow network / big dashboard / slow browser... A user requested that they wanted to customise one - so rather than build in a default one that we would overwrite on every upgrade it was simpler to just try to load it if it exists - and let it 404 if not, so the user could add whatever they want (or not).

---

<div class="post-metadata">

### Author: ![ristomatti](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ristomatti/32/5857_2.png) [@ristomatti](https://discourse.nodered.org/u/ristomatti)
#### Post date: [3 June 2020 22:57 UTC](https://discourse.nodered.org/t/cannot-get-ui-loading-html/27719/14 "2020-06-03T22:57:43Z")

</div>

Yep I understand. I guess it could be improved with a server side check but not like it's a big deal. Confusing at most what this thread shows.

---

<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: [17 June 2020 22:57 UTC](https://discourse.nodered.org/t/cannot-get-ui-loading-html/27719/15 "2020-06-17T22:57:44Z")

</div>

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