@timmy-chen: A 502 error? I don't know what could be causing that. It always works if I run the program before opening the site, so it might be something on replit's side.
EDIT: It turns out both errors are caused by the users getting randomly signed out. Because of that I'm thinking the error might be on your side.
EDIT 2: It seems like it works fine if I don't have the code tab open, so it might be caused by autosaving.
EDIT 3: I get a 502 error when I open the site while it's "waking up" the repl. That might be the cause