Howdy, Stranger!

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

Supported by

JATOS POST failed

Hi everyone,

I'm developing a study with JATOS (the latest docker image 3.6.1) and nginx as a proxy server. The frontend is written with React and several video recordings have to be uploaded to JATOS. Everything works fine except that the largest video sometimes doesn't get uploaded. It's 7-10mb. Even if it gets successfully uploaded there always are some failed attempts to upload it. This is the console and network output of the dev tools:

The nginx config looks like this:

At the end of the http-block there are some other files included, especially this:

Probably there's something wrong with the nginx or JATOS configuration, but I couldn't fix it. The jatos configuration is the standard one from the docker image.

Do you have any ideas how to solve this?

I also attached the corresponding error log of nginx.


Thanks for your help in advance!



Comments

  • Hi,

    I see from your screenshots you are using jatos.uploadResultFile. By default JATOS has a limit of 30 MB for file uploads but this can be changed in the production.conf. So file size shouldn't be your problem if your files are max 7-10 MB. But I see in the screenshots that your POSTs got a timeout. Maybe the cause is simply that your Nginx' timeouts are too low. Try e.g. 300 seconds:

                    location / {
                            proxy_pass              http://jatos-backend;
                            proxy_connect_timeout   300;
                            proxy_send_timeout      300;
                            proxy_read_timeout      300;
                            send_timeout            300;
                    }
    

    Hope this helps,

    Kristian

  • Hi,

    sorry for the late response and thanks for the suggestion! It seems to work. There are still some failed attempts to upload the videos and some retries, but after a maximum of 2 retries it's always uploaded.

    In my old configuration the proxy-timeouts were already set to 7d but I set them to 300 as you suggested. I believe that the send_timeout at 300 made the difference here. Maybe I'll have to play around with the values a bit to see if I can eliminate the failed attempts altogether.

    Thanks again!

  • Weird, one would think 7 days is greater than 300 seconds. Maybe there is/was another proxy/gateway that causes the timeouts?

  • edited January 2022

    Hi, I have a follow up question regarding the failed POST requests: I am now uploading even bigger files (20-30mb) and the upload always works, but the console still shows me that the POST requests fail (I am logging the response). Looking at the network tab in the devtools also shows that theres no success with the POST request. This behavior must also have been present when the videos were smaller, I think. I can already see the file in the JATOS-GUI and download it. But at that point the console still shows that the POST request failed and that theres a retry to post it - again and again until the timeout happens.

    This is a problem for me because I want to check in the frontend whether the videos are uploaded (by working with the response) and indicate to the user to wait while the upload is not finished.

    Any ideas on this?

  • Does this problem still occur in the new version 3.7.1 (e.g. you can test on jatos.mindprobe.eu)?

  • Hey,

    sorry for the late comment. I am writing for stejo. We're still having this issue. Sometimes videos get uploaded (after some timeouts) and sometimes not. The console still shows that the POST request failed and that theres a retry to post it - again and again until the timeout happens. Any news on this?

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