# Not able to run experiment online

**URL:** <https://discourse.psychopy.org/t/not-able-to-run-experiment-online/16872>\
**Category:** Online experiments\
**Created:** [September 29, 2020, 4:58am UTC](https://discourse.psychopy.org/t/not-able-to-run-experiment-online/16872 "2020-09-29T04:58:02Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![2clarkmoore2](https://avatars.discourse-cdn.com/v4/letter/2/7ab992/32.png) [@2clarkmoore2](https://discourse.psychopy.org/u/2clarkmoore2)\
**Post date:** [October 21, 2020, 11:08pm UTC](https://discourse.psychopy.org/t/not-able-to-run-experiment-online/16872/21 "2020-10-21T23:08:17Z")

</div>

Hmm just tried exactly that and still get the same error when I run in local debug mode. Its interesting it seems it should work. I don’t get the error at the beginning so that should be a good sign that the JS code works, however the error still comes up when I actually call randint. My exact line of code in pyschopy I have as a code component doing auto-JS and I enter E=randint(0,2) which “converts” to simply to E = randint(0, 2);

---

<div class="post-metadata">

**Author:** ![2clarkmoore2](https://avatars.discourse-cdn.com/v4/letter/2/7ab992/32.png) [@2clarkmoore2](https://discourse.psychopy.org/u/2clarkmoore2)\
**Post date:** [October 21, 2020, 11:08pm UTC](https://discourse.psychopy.org/t/not-able-to-run-experiment-online/16872/22 "2020-10-21T23:08:59Z")

</div>

also want to note that I call this on my third routine, which is part of a loop

[Previous page](https://discourse.psychopy.org/t/not-able-to-run-experiment-online/16872.md?page=1)
