Dose bokeh serve support "POST"?

Hi,

I need to develop a serve and send the parameters with “POST”. When I started my bokeh app and sent a POST request to it, I got follow info:

[redhat@iot-demo-01 file]$ bokeh serve --show bar_chart.py

2018-05-23 05:53:11,306 Starting Bokeh server version 0.12.15 (running on Tornado 5.0.2)

2018-05-23 05:53:11,309 Bokeh app running at: http://localhost:5006/bar_chart

2018-05-23 05:53:11,309 Starting Bokeh server with process id: 99406

2018-05-23 05:53:45,305 405 POST /bar_chart (127.0.0.1) 0.73ms

Seems bokeh serve do not support “POST” method. If I need to set up a bokeh serve with “POST”, what should I do? Thanks a lot!

Regards,

Yolanda.

Hi,

The initial HTTP request is immediately upgraded to a webscocket and after that all of Bokeh's communication happens over websocket. It might be possible to initiate a a websocket connection via POST (I don't happen to know offhand). But you are correct that in any case Bokeh simply does not support POST requests at present. You could file a Github feature request issue to investigate adding this, but I will be up front and state that there are many other priorities that would come ahead of this for the core team. Of course, we'd be happy to review and merge a Pull Request that adds this from a new contributor earlier.

Otherwise, the only other suggestion I have is that it might be possible to set up a proxy such as nginx in front of Bokeh somehow to make this work. But I am not certain that it is possible at all, and don't know how to do it in detail if it is.

Thanks,

Bryan

···

On May 22, 2018, at 23:19, yolanda chen <[email protected]> wrote:

Hi,

I need to develop a serve and send the parameters with "POST". When I started my bokeh app and sent a POST request to it, I got follow info:

[redhat@iot-demo-01 file]$ bokeh serve --show bar_chart.py
2018-05-23 05:53:11,306 Starting Bokeh server version 0.12.15 (running on Tornado 5.0.2)
2018-05-23 05:53:11,309 Bokeh app running at: http://localhost:5006/bar_chart
2018-05-23 05:53:11,309 Starting Bokeh server with process id: 99406
2018-05-23 05:53:45,305 405 POST /bar_chart (127.0.0.1) 0.73ms

Seems bokeh serve do not support "POST" method. If I need to set up a bokeh serve with “POST”, what should I do? Thanks a lot!

Regards,
Yolanda.

--
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/1e45a436-5262-4f6a-993a-65bcc7514734%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Hi Bryan,

Thanks for your explanation.
We were very confused about why bokeh serve do not support “POST”
before.

Regards,

Yolanda.

在 2018年5月23日星期三 UTC+8下午10:57:36,Bryan Van de ven写道:

···

Hi,

The initial HTTP request is immediately upgraded to a webscocket and after that all of Bokeh’s communication happens over websocket. It might be possible to initiate a a websocket connection via POST (I don’t happen to know offhand). But you are correct that in any case Bokeh simply does not support POST requests at present. You could file a Github feature request issue to investigate adding this, but I will be up front and state that there are many other priorities that would come ahead of this for the core team. Of course, we’d be happy to review and merge a Pull Request that adds this from a new contributor earlier.

Otherwise, the only other suggestion I have is that it might be possible to set up a proxy such as nginx in front of Bokeh somehow to make this work. But I am not certain that it is possible at all, and don’t know how to do it in detail if it is.

Thanks,

Bryan

On May 22, 2018, at 23:19, yolanda chen [email protected] wrote:

Hi,

I need to develop a serve and send the parameters with “POST”. When I started my bokeh app and sent a POST request to it, I got follow info:

[redhat@iot-demo-01 file]$ bokeh serve --show bar_chart.py

2018-05-23 05:53:11,306 Starting Bokeh server version 0.12.15 (running on Tornado 5.0.2)

2018-05-23 05:53:11,309 Bokeh app running at: http://localhost:5006/bar_chart

2018-05-23 05:53:11,309 Starting Bokeh server with process id: 99406

2018-05-23 05:53:45,305 405 POST /bar_chart (127.0.0.1) 0.73ms

Seems bokeh serve do not support “POST” method. If I need to set up a bokeh serve with “POST”, what should I do? Thanks a lot!

Regards,

Yolanda.


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/1e45a436-5262-4f6a-993a-65bcc7514734%40continuum.io.

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