microl44 / Julet

Website visualizing data from my watched movies, brought forward by the jul.
3 stars 1 forks source link

Investigare bug regarding non-fetched API movie data #115

Closed microl44 closed 6 months ago

microl44 commented 6 months ago

Sometimes when reloading the page, the movies are not fetched properly.

Investigare further regarding this issue, might be something that's too hard to fix for it to be viable.

image

microl44 commented 6 months ago

Might be happening when participant API call loads slower than the API call regarding movies.

image

Seems like the order they're logged in the console has something to do with it.

microl44 commented 6 months ago

image

Further investigation confirm this. Error thrown before result of 12 (participants) are fetched. Results after has no error thrown.

Solution would most likely require either awaiting fetchparticipants function before sending network reqs for movies, or stalling the creation of the tables until fetchparticipants are working.

microl44 commented 6 months ago

Suggestion seems reasonable and problem narrowed down to fetching of data & creation of tables.

New issue will be posted with the relevant tasks and information.