Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Your session has been disconnected #436

Open
garvit1608 opened this issue Feb 21, 2020 · 4 comments
Open

Your session has been disconnected #436

garvit1608 opened this issue Feb 21, 2020 · 4 comments

Comments

@garvit1608
Copy link

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
Copy link

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
Copy link
Contributor

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
Copy link

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
Copy link

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:

  • Block cross-site cookies
  • Block cookies
  • Allow all cookies

I think this originally had been set to

  • Block cross-site cookies

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

  • Allow all cookies

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants