ronreiter / interactive-tutorials

Interactive Tutorials
Apache License 2.0
4.04k stars 2.58k forks source link

Your session has been disconnected #436

Open garvit1608 opened 4 years ago

garvit1608 commented 4 years ago

I am trying to execute python scripts via shell (powered by Datacamp) included at https://www.learnpython.org/ However, I am always getting Your session has been disconnected error.

Here is a screenshot of console error which I am getting on hitting the run button:

Screen Shot 2020-02-21 at 10 02 40 AM

Screen Shot 2020-02-21 at 10 04 49 AM

cipri-tom commented 4 years ago

Hi. I am experiencing the same problem, and it seems we are not the first ones #397 . I'm curious how @MichaelJCole has solved it there.

@bakera81 do you know if we need a DataCamp account to run these examples?

bakera81 commented 4 years ago

Hi all, you don't need a DataCamp account to be able to run the code chunks on sites like Learn Python. I unfortunately can't reproduce the issue here. The session disconnecting is likely an issue with DataCamp Light itself - if refreshing the page or trying a different browser doesn't do the trick, please file an issue on the DataCamp Light project here: https://github.com/datacamp/datacamp-light/issues

RussellJQA commented 4 years ago

I had been experiencing the same problem using the Brave Browser for Windows, until I turned off's Brave's site-specific "shields" for the site. Once I did that, the problem went away.

The site-specific "shields" can be accessed by clicking the Brave lion icon to the right side of Brave's address bar panel. [See How do I configure global and site-specific Shields settings?]

RussellJQA commented 4 years ago

While using the Python tutorial today, I looked into this some more, and isolated what was causing the problem for me, at least, in Brave.

Brave's shields have 3 options regarding cookies:

I think this originally had been set to

but the only option which seems to work for this is:

I wonder if blocked cookies might also be what's causing this problem for garvit1608 and cipri-tom.

When a session ends up being disconnected because of blocked cookies, maybe the message could be changed to let the user know that's the cause of the problem. baker81 - Should I file an issue on the DataCamp Light project? Thanks.