# WLED WebUI losing connection, "TypeError" warnings

**URL:** <https://wled.discourse.group/t/wled-webui-losing-connection-typeerror-warnings/975>\
**Category:** Issues\
**Created:** [September 29, 2020, 1:25am UTC](https://wled.discourse.group/t/wled-webui-losing-connection-typeerror-warnings/975 "2020-09-29T01:25:06Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![killthewiseone](https://avatars.discourse-cdn.com/v4/letter/k/8e7dd6/32.png) [@killthewiseone](https://wled.discourse.group/u/killthewiseone)\
**Post date:** [September 29, 2020, 1:25am UTC](https://wled.discourse.group/t/wled-webui-losing-connection-typeerror-warnings/975/1 "2020-09-29T01:25:06Z")

</div>

Hi All.  
New to the WLED game. I have successfully flashed a binary ( WLED\_0.10.0\_ESP8266\_1M\_full.bin ) on to a [LifeSmart Cololight](http://global.ilifesmart.com/product/detail.html?id=45), the original non-pro model. These are based on ESP8266 with 1M flash.  
I have connected & set up the device, and all works ok initially, but I seem to keep on eventually running into connection issues. I get warnings in the WebUI of “typeerror failed to fetch” or sometimes “typeerror cannot read property of null”. Sometimes I cannot load the WebUI at all, the request will timeout. I can still see the unit connected to my router tho when this happens.  
I should note I have already tried some steps such as disabling mqtt, blynk, alexa, etc.  
Is this just to be expected with the limitations of the board? I see some are being deprecated in the upcoming release making this now the minimum spec hardware…  
Or should I be able to get this running stable?  
Just trying to get an idea if I should sink more time into troubleshooting or not…

---

<div class="post-metadata">

**Author:** ![killthewiseone](https://avatars.discourse-cdn.com/v4/letter/k/8e7dd6/32.png) [@killthewiseone](https://wled.discourse.group/u/killthewiseone)\
**Post date:** [September 29, 2020, 1:38am UTC](https://wled.discourse.group/t/wled-webui-losing-connection-typeerror-warnings/975/2 "2020-09-29T01:38:57Z")

</div>

Sometimes I get “connection to light failed. Please refresh the page. If the issue persists, reboot your ESP.” but this _usually_ disappears and is replaced by TypeErrors again without a refresh.

---

<div class="post-metadata">

**Author:** ![Modelman](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/modelman/32/416_2.png) [@Modelman](https://wled.discourse.group/u/Modelman)\
**Post date:** [September 29, 2020, 4:55pm UTC](https://wled.discourse.group/t/wled-webui-losing-connection-typeerror-warnings/975/3 "2020-09-29T16:55:18Z")

</div>

How far away is the ESP module from your router? The basic pcb antenna’s found on ESP8266’s often have very limited range and can cause communication errors. Set up a test rig with all components within close proximity and see if you still get the problem.

---

<div class="post-metadata">

**Author:** ![killthewiseone](https://avatars.discourse-cdn.com/v4/letter/k/8e7dd6/32.png) [@killthewiseone](https://wled.discourse.group/u/killthewiseone)\
**Post date:** [September 29, 2020, 6:14pm UTC](https://wled.discourse.group/t/wled-webui-losing-connection-typeerror-warnings/975/4 "2020-09-29T18:14:09Z")

</div>

Hey Modelman. Thanks for the response.  
The module isn’t far from the router tho, only around 6ft. I was using this unit with its original commercial firmware before flashing WLED and never experienced connection issues then. I’ll try it right next to the router and see.

---

<div class="post-metadata">

**Author:** ![huggy-d1](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/huggy-d1/32/51_2.png) [@huggy-d1](https://wled.discourse.group/u/huggy-d1)\
**Post date:** [September 29, 2020, 10:21pm UTC](https://wled.discourse.group/t/wled-webui-losing-connection-typeerror-warnings/975/5 "2020-09-29T22:21:12Z")

</div>

There are various settings which seem to help. Disable sleep mode (prevent wifi for taking a nap).  
If you have any full-time online PC or PI or server in your home where you can schedule periodic pings to the light, try scheduling a ping every minute. For proof of concept, just use ping from console/command line/terminal with 30 seconds between pings and let it ping forever (or until you tell it to stop). See if that affects the light staying online.

Search in this discourse group for wifi dropped and see if you find a similar situation where someone solved it.

---

<div class="post-metadata">

**Author:** ![Aircoookie](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/aircoookie/32/2_2.png) [@Aircoookie](https://wled.discourse.group/u/Aircoookie)\
**Post date:** [September 30, 2020, 6:38am UTC](https://wled.discourse.group/t/wled-webui-losing-connection-typeerror-warnings/975/6 "2020-09-30T06:38:49Z")

</div>

I would also recommend giving the `WLED_0.10.2_ESP01_1M_full_fix2009030.bin ` binary from the 0.10.2 release a try. It uses less heap memory and should be a bit more stable than 0.10.0.

---

<div class="post-metadata">

**Author:** ![killthewiseone](https://avatars.discourse-cdn.com/v4/letter/k/8e7dd6/32.png) [@killthewiseone](https://wled.discourse.group/u/killthewiseone)\
**Post date:** [September 30, 2020, 6:08pm UTC](https://wled.discourse.group/t/wled-webui-losing-connection-typeerror-warnings/975/7 "2020-09-30T18:08:37Z")

</div>

Thanks for the suggestions all.  
I’m now on the latest binary but I’m afraid I’m still not having great luck keeping a stable connection. I have sleep mode disabled.  
Pinging every 30 seconds seems to make little difference, when I lose the webui the ping requests timeout(occasionally alternating with ‘host is down’).  
I’ve had some success controlling the light via HomeAssistant with the integration even after the webui becomes unresponsive. But eventually the HA integration will lose communication with the light too. I did not have the HA integration running for most of my testing with the webui, it’s just something I tried at one point.  
I do know with the original firmware on this light, it did not do status reporting & communication was only one way, but it was pretty reliably responsive. Maybe it’s just not cut out for WLED.

---

<div class="post-metadata">

**Author:** ![tonyno](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/tonyno/32/242_2.png) [@tonyno](https://wled.discourse.group/u/tonyno)\
**Post date:** [September 30, 2020, 6:21pm UTC](https://wled.discourse.group/t/wled-webui-losing-connection-typeerror-warnings/975/8 "2020-09-30T18:21:52Z")

</div>

Have you tried a static IP?

---

<div class="post-metadata">

**Author:** ![killthewiseone](https://avatars.discourse-cdn.com/v4/letter/k/8e7dd6/32.png) [@killthewiseone](https://wled.discourse.group/u/killthewiseone)\
**Post date:** [September 30, 2020, 10:31pm UTC](https://wled.discourse.group/t/wled-webui-losing-connection-typeerror-warnings/975/9 "2020-09-30T22:31:14Z")

</div>

Yeah I’ve been using a static IP the whole time…  
I decided to try reflashing again. This time I had a whole lot of trouble even getting the AP to show up or connecting to it once it did.  
So I went back a few releases and tried `WLED_0.8.5_ESP01_1m.bin`.  
First impression is the webui is _lightning_ fast with only a slight lag in commands sent to the light.  
It’s early days to know if it’s stable but it’s looking very good. I’ve already got it talking to Home Assistant and Hyperion and seamlessly switching controlling from all three.  
I mean, I’d love to have the latest & all the new features, or just to troubleshoot the why of it… But for now I’m delighted to have an older release that does most of what I could want.

---

<div class="post-metadata">

**Author:** ![killthewiseone](https://avatars.discourse-cdn.com/v4/letter/k/8e7dd6/32.png) [@killthewiseone](https://wled.discourse.group/u/killthewiseone)\
**Post date:** [October 5, 2020, 12:33pm UTC](https://wled.discourse.group/t/wled-webui-losing-connection-typeerror-warnings/975/10 "2020-10-05T12:33:22Z")

</div>

Checking back in to say 0.8.5 has been running great for me, so much so I’ve flashed it to the remainder of my devices.

I do have 1 newer model that is based on an ESP32, and I was wondering if I could flash this with the latest firmware and have it send sync data to the older models? Would that work at all or would I run into trouble mixing and matching firmwares like that?  
I’m guessing I’d need something that would send out udp real time rather than the wled broadcast which appears to just relay commands?

---

<div class="post-metadata">

**Author:** ![foxy82](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/foxy82/32/1067_2.png) [@foxy82](https://wled.discourse.group/u/foxy82)\
**Post date:** [January 24, 2021, 9:52am UTC](https://wled.discourse.group/t/wled-webui-losing-connection-typeerror-warnings/975/11 "2021-01-24T09:52:29Z")

</div>

I’m seeing similar issues with a nodeMCU on 0.11.1 in particular when using Hyperion.

Should this have been fixed since the .10 version or am I best also rolling back to 0.8.5?

I’m using the WLED\_0.x.x\_ESP8266.bin image.

Edit: I don’t have the capacitor installed could that be a cause?

---

<div class="post-metadata">

**Author:** ![tonyno](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/tonyno/32/242_2.png) [@tonyno](https://wled.discourse.group/u/tonyno)\
**Post date:** [January 25, 2021, 12:51am UTC](https://wled.discourse.group/t/wled-webui-losing-connection-typeerror-warnings/975/12 "2021-01-25T00:51:52Z")

</div>

I’ve been running Hyperion with 0.11.1 on an ESP32 for a while now with no issues.

---

<div class="post-metadata">

**Author:** ![JonLevin25](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/jonlevin25/32/3259_2.png) [@JonLevin25](https://wled.discourse.group/u/JonLevin25)\
**Post date:** [June 7, 2022, 9:13pm UTC](https://wled.discourse.group/t/wled-webui-losing-connection-typeerror-warnings/975/13 "2022-06-07T21:13:35Z")

</div>

Hi,  
I’ve had a similar issue, but probably of different origin, as pinging works fine for me, and I suspect DDP.

I’ve opened a new topic [here](https://wled.discourse.group/t/web-interface-fails-to-load-b-c-of-ddp/5486)
