datacamp / datacamp-light

Convert any blog or website to an interactive learning platform for data science
GNU Affero General Public License v3.0
1.31k stars 358 forks source link

Sessions disconnection on Android #102

Open westonstearns opened 6 years ago

westonstearns commented 6 years ago

A user has reported the following errors have occurred on this page https://www.learnpython.org/en/Hello%2C_World%21:

multiplexer-prod.datacamp.com/input?sid=c49abd07cd5e187493bb6f2421623883&newCount=0:1 Failed to load resource: the server responded with a status of 403 () multiplexer-prod.datacamp.com/input?sid=6ddd8c5472b85e57d5d9a9b96a0b6fd0&newCount=0:1 Failed to load resource: the server responded with a status of 403 () multiplexer-prod.datacamp.com/input?sid=a661ec1496a8f8d27e26eddf36267658&newCount=0:1 Failed to load resource: the server responded with a status of 403 () multiplexer-prod.datacamp.com/input?sid=f6398ed0928ff1c3a4c9e7c62f5adb8f&newCount=0:1 Failed to load resource: the server responded with a status of 403 () 2multiplexer-prod.datacamp.com/input?sid=4a62375de9705ff9be2cf09b857c72d2&newCount=0:1 Failed to load resource: the server responded with a status of 403 () multiplexer-prod.datacamp.com/input?sid=0518550831b02323c92ff9258350d416&newCount=0:1 POST https://multiplexer-prod.datacamp.com/input?sid=0518550831b02323c92ff9258350d416&newCount=0 403 () multiplexer-prod.datacamp.com/input?sid=654380d0d48cd1a501b3af2cf0fc1bdd&newCount=0:1 POST https://multiplexer-prod.datacamp.com/input?sid=654380d0d48cd1a501b3af2cf0fc1bdd&newCount=0 403 () multiplexer-prod.datacamp.com/input?sid=7d322827f8e8abe19f9be6842219353f&newCount=0:1 POST https://multiplexer-prod.datacamp.com/input?sid=7d322827f8e8abe19f9be6842219353f&newCount=0 403 () multiplexer-prod.datacamp.com/input?sid=44e99c9b99ff79254e7f81e913cb85e8&newCount=0:1 POST https://multiplexer-prod.datacamp.com/input?sid=44e99c9b99ff79254e7f81e913cb85e8&newCount=0 403 () multiplexer-prod.datacamp.com/input?sid=d1092efa6130c02c599c1c7b3f0756f7&newCount=0:1 POST https://multiplexer-prod.datacamp.com/input?sid=d1092efa6130c02c599c1c7b3f0756f7&newCount=0 403 ()

kaplandm commented 5 years ago

This sounds like #32 and (I think) is the same problem I'm having? I get "Your session has been disconnected" when I try to Run the OP's examples (on the linked page), and I have problems with my own example (see below), but I can run all of DataCamp's examples perfectly fine, like at https://cdn.datacamp.com/dcl-react-prod/index.html (both R and Python work fine). (fwiw the "old" examples at https://cdn.datacamp.com/dcl/standalone-example.html also work for me, but I can't get my own example to work with that .js file.)

I'm just trying to run a simple example locally, in Chrome on a Chromebook, but I get those 403s, too. When I hit Run, the dot turns red and says "Broken Session", and hitting Restart only briefly turns the dot orange before it goes back red. The attached screenshot is after I hit Run once and Restart three times, so four 403s. datacamplight_403error

My example .html is just

<html>
<script src="https://cdn.datacamp.com/dcl-react.js.gz"></script>
<body>
<div data-datacamp-exercise data-lang="r" data-show-run-button>
    <code data-type="sample-code">
 a = 5
 a
    </code>
</div>
</body>
</html>
ktracer-isp commented 5 years ago

Seeing the same problem here. Inspecting the network traffic when clicking RUN on any example bloc yields a 403, followed by a fade-in message saying "your session has been disconnected."

MaxGaukler commented 4 years ago

Same problem here in Firefox and Chromium on Linux, sometimes intermittently. It does not work at all on Firefox Mobile on Android. I get lots of third-party cookie warnings on the console. Works correctly on MS Edge and Firefox on another Windows machine, but that might just be luck.