# "Communication send error: Error: WebSocket is not open: readyState 3 (CLOSED)

**URL:** <https://discourse.nodered.org/t/communication-send-error-error-websocket-is-not-open-readystate-3-closed/22172>\
**Category:** General\
**Created:** [24 February 2020 07:03 UTC](https://discourse.nodered.org/t/communication-send-error-error-websocket-is-not-open-readystate-3-closed/22172 "2020-02-24T07:03:51Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![TomLi](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@TomLi](https://discourse.nodered.org/u/TomLi)\
**Post date:** [24 February 2020 07:03 UTC](https://discourse.nodered.org/t/communication-send-error-error-websocket-is-not-open-readystate-3-closed/22172/1 "2020-02-24T07:03:51Z")

</div>

when I deploy my flow on node-red of raspberry, it always get out ""Communication send error: Error: WebSocket is not open: readyState 3 (CLOSED)", but if I run the same flow on another node-red of raspberry, it doesn't get out . Does everyone help me ???

---

<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:** [24 February 2020 07:40 UTC](https://discourse.nodered.org/t/communication-send-error-error-websocket-is-not-open-readystate-3-closed/22172/2 "2020-02-24T07:40:57Z")

</div>

Did you install on both using the recommended install script in the node red docs (`bash <(curl ...`)?  
Start node red in a terminal using `node-red-stop` then `node-red-start` and see what the difference is. If necessary post them here.

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [24 February 2020 07:50 UTC](https://discourse.nodered.org/t/communication-send-error-error-websocket-is-not-open-readystate-3-closed/22172/3 "2020-02-24T07:50:19Z")

</div>

I had the same issue last week. It turned out my ssl certificate wasn't valid anymore. When I opened the flow editor, chrome had informed me that the certificate was invalid But I had chosen to "continue", which seemed to be working for my current session (except for the websocket which seemed to have figured out after some time that something was wrong). Could that be your problrm too perhaps?  
Bart

---

<div class="post-metadata">

**Author:** ![TomLi](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@TomLi](https://discourse.nodered.org/u/TomLi)\
**Post date:** [24 February 2020 08:07 UTC](https://discourse.nodered.org/t/communication-send-error-error-websocket-is-not-open-readystate-3-closed/22172/4 "2020-02-24T08:07:15Z")

</div>

I am not sure. ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/3/23d8e10cfd519a61c28d89c2cbc325047ba1a4b9.png)

---

<div class="post-metadata">

**Author:** ![TomLi](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@TomLi](https://discourse.nodered.org/u/TomLi)\
**Post date:** [24 February 2020 08:15 UTC](https://discourse.nodered.org/t/communication-send-error-error-websocket-is-not-open-readystate-3-closed/22172/5 "2020-02-24T08:15:13Z")

</div>

it is the same phenomenon

---

<div class="post-metadata">

**Author:** ![TomLi](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@TomLi](https://discourse.nodered.org/u/TomLi)\
**Post date:** [24 February 2020 08:28 UTC](https://discourse.nodered.org/t/communication-send-error-error-websocket-is-not-open-readystate-3-closed/22172/6 "2020-02-24T08:28:37Z")

</div>

> [@Colin](#):
>
> Did you install on both using the recommended install script in the node red docs ( `bash <(curl ...` )?

==========what does this mean?

---

<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:** [24 February 2020 09:19 UTC](https://discourse.nodered.org/t/communication-send-error-error-websocket-is-not-open-readystate-3-closed/22172/7 "2020-02-24T09:19:23Z")

</div>

> [@TomLi](#):
>
> what does this mean?

The recommended install script starts like that. See [Running on Raspberry Pi : Node-RED](https://nodered.org/docs/getting-started/raspberrypi)

---

<div class="post-metadata">

**Author:** ![TomLi](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@TomLi](https://discourse.nodered.org/u/TomLi)\
**Post date:** [24 February 2020 09:31 UTC](https://discourse.nodered.org/t/communication-send-error-error-websocket-is-not-open-readystate-3-closed/22172/8 "2020-02-24T09:31:56Z")

</div>

Yes , I installed it using the recommended script, and the other raspberry which has no "communication send error . Websocket is not open" is not

---

<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:** [24 February 2020 09:59 UTC](https://discourse.nodered.org/t/communication-send-error-error-websocket-is-not-open-readystate-3-closed/22172/9 "2020-02-24T09:59:51Z")

</div>

Are you using SSL?

---

<div class="post-metadata">

**Author:** ![TomLi](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@TomLi](https://discourse.nodered.org/u/TomLi)\
**Post date:** [24 February 2020 10:02 UTC](https://discourse.nodered.org/t/communication-send-error-error-websocket-is-not-open-readystate-3-closed/22172/10 "2020-02-24T10:02:11Z")

</div>

In my flow?

---

<div class="post-metadata">

**Author:** ![TomLi](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@TomLi](https://discourse.nodered.org/u/TomLi)\
**Post date:** [24 February 2020 10:10 UTC](https://discourse.nodered.org/t/communication-send-error-error-websocket-is-not-open-readystate-3-closed/22172/11 "2020-02-24T10:10:31Z")

</div>

There is postgres node has SSL in my flow, but not use SSL

---

<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:** [24 February 2020 10:15 UTC](https://discourse.nodered.org/t/communication-send-error-error-websocket-is-not-open-readystate-3-closed/22172/12 "2020-02-24T10:15:21Z")

</div>

I don't know whether it could be that. Post the startup log as I suggested, after comparing the same from the working one to see what the differences are.

---

<div class="post-metadata">

**Author:** ![TomLi](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@TomLi](https://discourse.nodered.org/u/TomLi)\
**Post date:** [24 February 2020 10:18 UTC](https://discourse.nodered.org/t/communication-send-error-error-websocket-is-not-open-readystate-3-closed/22172/13 "2020-02-24T10:18:22Z")

</div>

I supposed that the main problem is on node-red , not the problem of flow

---

<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:** [24 February 2020 11:17 UTC](https://discourse.nodered.org/t/communication-send-error-error-websocket-is-not-open-readystate-3-closed/22172/14 "2020-02-24T11:17:42Z")

</div>

That's why we need to see the startup logs.

---

<div class="post-metadata">

**Author:** ![TomLi](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@TomLi](https://discourse.nodered.org/u/TomLi)\
**Post date:** [25 February 2020 00:52 UTC](https://discourse.nodered.org/t/communication-send-error-error-websocket-is-not-open-readystate-3-closed/22172/15 "2020-02-25T00:52:54Z")

</div>

I compared, the version of node.js and dashboard are different,  
the error raspberry: node.js--\>12.14.1; dashboard--\>2.19.3  
the normal one: node.js--\>12.13.1; dashboard--\>2.19.2

---

<div class="post-metadata">

**Author:** ![TomLi](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@TomLi](https://discourse.nodered.org/u/TomLi)\
**Post date:** [25 February 2020 01:11 UTC](https://discourse.nodered.org/t/communication-send-error-error-websocket-is-not-open-readystate-3-closed/22172/16 "2020-02-25T01:11:35Z")

</div>

I found other thing:  
the raspberry IP is 192.168.1.114 , and the Router IP is 119.xx.xx.xx,  
I try 192.168.1.114:1880, the error will get out;  
but I try 119.xx.xx.xx:1880, there is no error information.

---

<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:** [25 February 2020 09:15 UTC](https://discourse.nodered.org/t/communication-send-error-error-websocket-is-not-open-readystate-3-closed/22172/17 "2020-02-25T09:15:07Z")

</div>

> [@TomLi](#):
>
> try 119.xx.xx.xx:1880, there is no error information

Do you mean it is all working now?

---

<div class="post-metadata">

**Author:** ![TomLi](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@TomLi](https://discourse.nodered.org/u/TomLi)\
**Post date:** [25 February 2020 09:40 UTC](https://discourse.nodered.org/t/communication-send-error-error-websocket-is-not-open-readystate-3-closed/22172/18 "2020-02-25T09:40:24Z")

</div>

Yes. it is all working normally.  
I'm binding the router(119.xx.xx.xx:1881) to raspberry IP

---

<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:** [25 April 2020 09:40 UTC](https://discourse.nodered.org/t/communication-send-error-error-websocket-is-not-open-readystate-3-closed/22172/19 "2020-04-25T09:40:25Z")

</div>

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