web socket connection error

Hi,

I am developing a web application using bokeh server. When I try to display the figures I created on web browser, bokeh server gives the following error:

Uncaught Error: not connected so cannot send [object Object]

Could you please explain me why? Web socket connection is created successfully and server connection created. But right after, it says that “Websocket connection closed”. This error is after 10 seconds bokeh server displays the figures on web. There is no other error. I checked the blogs and issues on web that may relate to this error. I think something related to js bokeh libraries may be broken but not sure. Since there is nothing with code, I will not post it here.

Thanks.

Hi,

Code is always related. If nothing else, in order to investigate we would need to be able to reproduce. Otherwise, the only offhand suggestions I have without being able to reproduce are:

* browsers have various web socket message limits, if you are sending very large data sets and go over the limits, then disconnects will happen

* some older versions of safari had web socket bugs that could cause disconnects

Thanks,

Bryan

···

On May 23, 2018, at 05:55, [email protected] wrote:

Hi,

I am developing a web application using bokeh server. When I try to display the figures I created on web browser, bokeh server gives the following error:

Uncaught Error: not connected so cannot send [object Object]

Could you please explain me why? Web socket connection is created successfully and server connection created. But right after, it says that "Websocket connection closed". This error is after 10 seconds bokeh server displays the figures on web. There is no other error. I checked the blogs and issues on web that may relate to this error. I think something related to js bokeh libraries may be broken but not sure. Since there is nothing with code, I will not post it here.

Thanks.

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/4540a0de-a306-48e8-90e9-8c48f0ae4cc0%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Thanks, the problem was as you suggested, web socket message limitation, I sent a large dataset.

···

On Wednesday, May 23, 2018 at 5:52:39 PM UTC+3, Bryan Van de ven wrote:

Hi,

Code is always related. If nothing else, in order to investigate we would need to be able to reproduce. Otherwise, the only offhand suggestions I have without being able to reproduce are:

  • browsers have various web socket message limits, if you are sending very large data sets and go over the limits, then disconnects will happen

  • some older versions of safari had web socket bugs that could cause disconnects

Thanks,

Bryan

On May 23, 2018, at 05:55, [email protected] wrote:

Hi,

I am developing a web application using bokeh server. When I try to display the figures I created on web browser, bokeh server gives the following error:

Uncaught Error: not connected so cannot send [object Object]

Could you please explain me why? Web socket connection is created successfully and server connection created. But right after, it says that “Websocket connection closed”. This error is after 10 seconds bokeh server displays the figures on web. There is no other error. I checked the blogs and issues on web that may relate to this error. I think something related to js bokeh libraries may be broken but not sure. Since there is nothing with code, I will not post it here.

Thanks.


You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/4540a0de-a306-48e8-90e9-8c48f0ae4cc0%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi,

OK, unfortunately I don't have any simple solution to suggest. Ideally Bokeh could chunk messages automatically, but that will require alot of low level work, which adds risk and a large testing burden. Perhaps someday, but I would not expect it to happen in the short-term. Depending on your use-case, downsampling or some other kind of reduction are possibilities. Otherwise, there are hacky possibilities such as setting up multiple timeout callbacks to send smaller chunks of data in sequence explicitly.

Thanks,

Bryan

···

On May 23, 2018, at 09:16, [email protected] wrote:

Thanks, the problem was as you suggested, web socket message limitation, I sent a large dataset.

On Wednesday, May 23, 2018 at 5:52:39 PM UTC+3, Bryan Van de ven wrote:
Hi,

Code is always related. If nothing else, in order to investigate we would need to be able to reproduce. Otherwise, the only offhand suggestions I have without being able to reproduce are:

* browsers have various web socket message limits, if you are sending very large data sets and go over the limits, then disconnects will happen

* some older versions of safari had web socket bugs that could cause disconnects

Thanks,

Bryan

> On May 23, 2018, at 05:55, koseog...@gmail.com wrote:
>
> Hi,
>
> I am developing a web application using bokeh server. When I try to display the figures I created on web browser, bokeh server gives the following error:
>
> Uncaught Error: not connected so cannot send [object Object]
>
> Could you please explain me why? Web socket connection is created successfully and server connection created. But right after, it says that "Websocket connection closed". This error is after 10 seconds bokeh server displays the figures on web. There is no other error. I checked the blogs and issues on web that may relate to this error. I think something related to js bokeh libraries may be broken but not sure. Since there is nothing with code, I will not post it here.
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to bokeh+un...@continuum.io.
> To post to this group, send email to bo...@continuum.io.
> To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/4540a0de-a306-48e8-90e9-8c48f0ae4cc0%40continuum.io\.
> For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/d054235c-2f64-4b43-910a-56c5826228b0%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.