Trouble with CORS on a production server (embedding plots)

I am unable to get any bokeh server embedded plots to run on a “real” server. I have my app working great on my development machine, but on a production server I always get the following error:

GET http://127.0.0.1:5006/bokeh/autoload.js/4511d256-e6a7-4966-af26-fe99b8736163?_=1446137030053 net::ERR_CONNECTION_REFUSED

If I cURL that address from my server’s command line, I get the javascript just fine.

It is a Flask application being run by UWSGI being served by nginx.

I have been fighting this issue for a while. This last hurdle is wearing on my resolve. I have asked on Stack Overflow a few times, but I keep getting pointed to the examples. The issue is that the examples run fine, but once I leave the safety of a development environment everything changes.

Hi,

Looks like it’s a crossdomain violation problem. What version of bokeh are you using?

Thanks

Fabio

···

On Thu, Oct 29, 2015 at 11:47 AM, Brian Leach [email protected] wrote:

I am unable to get any bokeh server embedded plots to run on a “real” server. I have my app working great on my development machine, but on a production server I always get the following error:

GET http://127.0.0.1:5006/bokeh/autoload.js/4511d256-e6a7-4966-af26-fe99b8736163?_=1446137030053 net::ERR_CONNECTION_REFUSED

If I cURL that address from my server’s command line, I get the javascript just fine.

It is a Flask application being run by UWSGI being served by nginx.

I have been fighting this issue for a while. This last hurdle is wearing on my resolve. I have asked on Stack Overflow a few times, but I keep getting pointed to the examples. The issue is that the examples run fine, but once I leave the safety of a development environment everything changes.

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/11a29d97-adae-4558-b5c7-edf4b6e8475b%40continuum.io.

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

Fabio Pliger

Senior Software Engineer, Bokeh

I am using Bokeh 0.10.0 (I believe this is the latest release)

···

On Thu, Oct 29, 2015 at 12:00 PM, Fabio Pliger [email protected] wrote:

Hi,

Looks like it’s a crossdomain violation problem. What version of bokeh are you using?

Thanks

Fabio

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/CAPVmnqAEsypCRSMGSWqLTcqmX%3DpNsWqp2QLwAL47po4J-5hWPQ%40mail.gmail.com.

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

On Thu, Oct 29, 2015 at 11:47 AM, Brian Leach [email protected] wrote:

I am unable to get any bokeh server embedded plots to run on a “real” server. I have my app working great on my development machine, but on a production server I always get the following error:

GET http://127.0.0.1:5006/bokeh/autoload.js/4511d256-e6a7-4966-af26-fe99b8736163?_=1446137030053 net::ERR_CONNECTION_REFUSED

If I cURL that address from my server’s command line, I get the javascript just fine.

It is a Flask application being run by UWSGI being served by nginx.

I have been fighting this issue for a while. This last hurdle is wearing on my resolve. I have asked on Stack Overflow a few times, but I keep getting pointed to the examples. The issue is that the examples run fine, but once I leave the safety of a development environment everything changes.

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/11a29d97-adae-4558-b5c7-edf4b6e8475b%40continuum.io.

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


Fabio Pliger

Senior Software Engineer, Bokeh