tutors-sdk / tutors

The core Tutors Reader application.
https://tutors.dev
MIT License
110 stars 45 forks source link

Course temporarily returns a `404`/`502` after not being accessed for a while #829

Open piotrpdev opened 2 weeks ago

piotrpdev commented 2 weeks ago

When attempting to access a course after a while of not doing so, I receive this 502 error and have to refresh the page:

Screenshot 2024-10-15 135407

Intentionally blocking the request URL results in the same error:

Screenshot 2024-10-15 135707

This is the URL that sometimes returns a 502: https://tutors.dev/course/webappdev2.netlify.app/__data.json?x-sveltekit-invalidated=100.

After refreshing the page once, the error doesn't appear again until an extended period of not visiting the course.

I'm not sure if this intentional as a security measure or something, but it is annoying nevertheless.

edeleastar commented 2 weeks ago

Thanks @piotrpdev for the report. I susoect it may be related to updates we are pushing out on the tutors.dev reader application, which may invalidate the session. It would be useful to figure out if it was else though. Is there a specific time period when it happens? Could you test on overnight for instance?

piotrpdev commented 2 weeks ago

I tested it just now and the error didn't occur, so probably needs 20+ hours at least of not visiting the course. I did visit another course page like 10 hours ago though.