Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Uncaught TypeError: Cannot read property 'data' of undefined

Hi there,

I try to run my experiment online on OSWeb, but this error appear:

Uncaught TypeError: Cannot read property 'data' of undefined

Could anyone tell me how to solve this problem.



Many thanks,

Sami

Comments

  • I fixed the previous error. Now this error appears:

    Uncaught TypeError: Cannot read property 'body' of null

    I would be grateful if sombody can help me.


    Thanks,

    Sami


  • Hi @Sami,

    Your output suggests you are not running your experiment online but in regular OpenSesame. The error messages you are reporting are common for Python (which is used by OpenSesame) and not for JavaScript (which is used for the web).

    My impressions is that your experiment is not working as it should yet, even in OpenSesame. Am I right? If you first try to get it running in there, then there is a bigger chance that it will also run without problems online.

    The second screenshot you post is from an online experiment but it is hard to say why this error occurs. My guess is that you are using an inline script item, which is not supported yet, or have an incorrect statement somewhere else (for example in a run if field).

    Buy Me A Coffee

  • Hi Daniel,

    Thank you very much for your response.

    My experiment runs nicely when I use the quick run, but it faces errors when I run it in the OSweb.

    Could you please look at my experiment?

    (I use the left and right arrows for responsing).


    Thanks,

    Sami

  • Hi Sami,

    Right after opening your experiment, I immediately get the error:

    Osweb only supports a limited set of modules and matplotlib certainly isn't one of them! Please check your experiment. you *cannot* use any inline_script items containing Python code. If you want to use inline scripting, you need to use the inline_javascript items, but what you can do with these is also very limited at the moment.

    Buy Me A Coffee

  • Hi Daniel,

    Thanks again for your help. In your idea, is there any way to fix the problem? I am not familiar with JavaScript, and I don't know what should I do?

  • Hi @Sami,

    I have to apologize as the previous error that I experienced with your experiment and that I reported here was actually due to a fault in my OpenSesame installation. I managed to open your experiment correctly now, and it's actually very well built en completely compatible with osweb.

    I don't know what causes your error, but I did prevent it by fixing some inconsistencies that are hard to notice if you just start working with OpenSesame/osweb, but nevertheless very important:

    1. in the keyboard_response item you set the allowed responses as left; right . Try and remove the space after ; so it reads left;right
    2. In the run if fields of the trial_sequence item, you write down conditions as =vars.correct == 1 while this should technically work, there is an easier way to do comparisons with variables in OpenSesame by using [] ; you can write this condition also as [correct] = 1 . OpenSesame (and osweb) will automatically look in the vars object for the variable name that you put between these brackets.

    Once I made these changes your experiment ran nicely in osweb. The only thing that still seemed off was the feedback (the smiley) after a response, which appeared onscreen for too short a time.

    I hope this helps you getting things running!

    Buy Me A Coffee

  • Dear Daniel,

    I can't thank you enough. I made the changes that you had proposed and it worked nicely. I also changed and corrected the duration of the feedback.

    I faced another problem in the "feedback item" in OSweb. average reaction time (avg_rt) and accuracy percent (acc)% were not seen in the feedback item at the end of practice.

  • It was my first experience with open sesame, and I am so happy that your comments caused my experiment to work nicely.πŸ™πŸ™πŸ™

    Thanks again,

    Sami

  • Hi @Sami,

    I'm glad I could help

    I faced another problem in the "feedback item" in OSweb. average reaction time (avg_rt) and accuracy percent (acc)% were not seen in the feedback item at the end of practice.

    This is solved now, since you are speaking about this in past tense? :)

    Buy Me A Coffee

  • sorry. It seems that my English isn't very good. 😊

    No, it is not solved until now.

  • Hello,

    I am experiencing a similar problem with my working memory experiment. Participants are required to judge each sentence (auditory presentation) for plausibility and subsequently recall the last word of each sentence.

    The experiment works fine when I run it normally but fails to do so in a browser.

    In Chrome I get:

    Uncaught TypeError: Cannot read property 'data' of undefined

    In Firefox I get:

    TypeError: r is undefined


    Could someone please have a look at my experiment? Many thanks in advance.

    Total runtime of the experiment as of now is < 1 minute as it only has one trial consisting of three sentences + recall.


  • Sorry for double-posting. I have fixed the error now (turned out there were files missing from the filepool).

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games