[IPython-User] sockjs code errors
Darren Govoni
darren@ontrenet....
Tue Sep 25 07:23:22 CDT 2012
Is there a way to disable websockets in ipython notebook server so the
client will fall back to something firewall friendly?
On Fri, 2012-09-21 at 17:40 +0200, Matthias BUSSONNIER wrote:
>
>
> Le 21 sept. 2012 à 17:27, Darren Govoni a écrit :
>
>
>
> > Not sure. But the calls should be rather instant. The page is only
> > up for a few seconds, then I try to execute a cell and get the
> > errors right away, so I don't think its timing out.
> >
> > There is some added security on the network I am on, but what struck
> > me was there is still a ws:// error reference.
> >
>
>
> Sockjs does try to establish web socket connexion first and use
> fallbacks only if it fails.
> I guess here the connexion is established, so socks assume web socket
> does work, but fail afterward.
> It should be possible to ask sockjs to avoid trying web socket in your
> particular case.
>
>
> see https://github.com/sockjs/sockjs-client#sockjs-client-api
>
>
> --
> Matthias
>
>
>
>
>
> >
> > If all the calls return on the same outbound port as the notebook, I
> > think our security will be satisfied.
> >
> > <br><br><br>------- Original Message -------
> > On 9/21/2012 10:12 AM Matthias BUSSONNIER wrote:<br>sept. 2012 �
> > 15:23, Darren Govoni a �crit :
> > <br>
> > <br>> Hi again,
> > <br>>
> > <br>> I'm trying to test the SockJS PR code on our network (which
> > restricts some non-origination port access). Here is the errors I
> > get loading a notebook.
> > <br>>
> > <br>>
> > <br>> GET
> > http://ec2-23-22-85-215.compute-1.amazonaws.com/...6f72-2332-4b46-801e-7b2ac3d7279c?_=1348150153522
> > <br>> 200 OK
> > <br>> 875ms
> > <br>> jquery...v=ddb84 (line 4)
> > <br>> POST
> > http://ec2-23-22-85-215.compute-1.amazonaws.com/...ls?notebook=3f516f72-2332-4b46-801e-7b2ac3d7279c
> > <br>> 200 OK
> > <br>> 156ms
> > <br>> jquery...v=ddb84 (line 4)
> > <br>> Kernel started:
> > <br>> 4fcdd448-528c-4398-9f35-66ef0c8dd845
> > <br>> kernel.js?v=8ec9a (line 72)
> > <br>> Starting SockJS:
> > <br>>
> > http://ec2-23-22-85-215.compute-1.amazonaws.com/kernels/4fcdd448-528c-4398-9f35-66ef0c8dd845
> > <br>> kernel.js?v=8ec9a (line 128)
> > <br>> GET
> > http://ec2-23-22-85-215.compute-1.amazonaws.com/...s/4fcdd448-528c-4398-9f35-66ef0c8dd845/sock/info
> > <br>> 200 OK
> > <br>> 31ms
> > <br>> sockjs...v=677b0 (line 27)
> > <br>> POST
> > http://ec2-23-22-85-215.compute-1.amazonaws.com/...f35-66ef0c8dd845/sock/694/20e9o3i2/xhr_streaming
> > <br>> Aborted
> > <br>>
> > <br>> sockjs...v=677b0 (line 27)
> > <br>> POST
> > http://ec2-23-22-85-215.compute-1.amazonaws.com/...28c-4398-9f35-66ef0c8dd845/sock/694/9j21bbu5/xhr
> > <br>> 200 OK
> > <br>> 156ms
> > <br>> sockjs...v=677b0 (line 27)
> > <br>> POST
> > http://ec2-23-22-85-215.compute-1.amazonaws.com/.. .398-9f35-66ef0c8dd845/sock/694/9j21bbu5/xhr_send
> > <br>> 500 Internal Server Error
> > <br>> 63ms
> > <br>> sockjs...v=677b0 (line 27)
> > <br>> POST
> > http://ec2-23-22-85-215.compute-1.amazonaws.com/...28c-4398-9f35-66ef0c8dd845/sock/694/9j21bbu5/xhr
> > <br>> 200 OK
> > <br>> 47ms
> > <br>> sockjs...v=677b0 (line 27)
> > <br>> "NetworkError: 500 Internal Server Error -
> > http://ec2-23-22-85-215.compute-1.amazonaws.com/kernels/4fcdd448-528c-4398-9f35-66ef0c8dd845/sock/694/9j21bbu5/xhr_send"
> > <br>> xhr_send
> > <br>> The connection to
> > ws://ec2-23-22-85-215.compute-1.amazonaws.com/kernels/4fcdd448-528c-4398-9f35-66ef0c8dd845/sock/694/k9gnz13n/websocket was interrupted while the page was loading.
> > <br>>
> > <br>> ...)})},y.prototype._didMessage=function(a){var
> > b=this,c=a.slice(0,1);switch(c){cas...
> > <br>> sockjs...v=677b0 (line 27)
> > <br>Can it be some security measure so that even with
> > connexion=keep-alive either a proxy or the remote server close the
> > connexion after a given timeout ?
> > <br>I have not enough netcat foo to tell you how to check.
> > <br>--
> > <br>Matthias
> > <br>
> > <br>
> > <br>
> > <br>>
> > <br>> _______________________________________________
> > <br>> IPython-User mailing list
> > <br>> IPython-User@scipy.org
> > <br>> http://mail.scipy.org/mailman/listinfo/ipython-user
> > <br>
> > <br>
> > <br>_______________________________________________
> > <br>IPython-User mailing list
> > <br>IPython-User@scipy.org
> > <br>http://mail.scipy.org/mailman/listinfo/ipython-user
> > <br>
> > _______________________________________________
> > IPython-User mailing list
> > IPython-User@scipy.org
> > http://mail.scipy.org/mailman/listinfo/ipython-user
> >
>
>
>
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20120925/5cef9476/attachment-0001.html
More information about the IPython-User
mailing list