Closed martonrideg closed 2 weeks ago
Ok, do you see any error messages in the terminal/shell?
In the Docker log for app-euro2024-web-1:
2024-06-15 20:17:18 TypeError: match.all_bets is not iterable
2024-06-15 20:17:18 at /app/routes/past.js:124:33
2024-06-15 20:17:18 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Btw, thanks for your great work! You made our team happy to run it internally!
Ah, I guess you don't have any bets on the first match. I will fix it later.
Correct! I have added rows to bet through Docker exec with psql for matches id 49, 50, 51 with
insert into bet values ('7','0','0','1','51');
That fixes the issue. If there is a match without a single bet, internal server error occurs again.
As we have experienced on our sandbox testing, the fix is low prio for us as we are confident to update prod. We have enough bets there...
Thank you so much!
I fixed the bug with https://github.com/syxolk/euro2024/commit/30aa08b9c4775b6c70de31c5764d57d7510c57f4
Thanks, Hans! Wish you were support for our upcoming core system! ;)
When any match result is in table "match", the /past node returns "internal server error".