usaco-guide icon indicating copy to clipboard operation
usaco-guide copied to clipboard

Contact Form Submission - Website Bug

Open maggieliu05 opened this issue 11 months ago • 9 comments

Someone submitted the contact form!

URL: https://usaco.guide/gold/intro-dp?lang=cpp Module: None Topic: Website Bug Message: Hello, I just lost my data right now: 1- I'm signing in using Google 2- it's been a year since I created my account (Not sure) 3- No, I just opened the website as usual from my laptop 4- It happened right now: March/5/2024
5- I absolutely didn't do anything, I didn't even sign in, I was already signed in 6- Yes, I think all my data lost, but I only care about the modules progress

maggieliu05 avatar Mar 05 '24 14:03 maggieliu05

Hello anyone here!!

AbdulHafez-Alkrudi avatar Mar 06 '24 20:03 AbdulHafez-Alkrudi

What's your email address? Can you check the browser console for error messages?

thecodingwizard avatar Mar 06 '24 20:03 thecodingwizard

Here is my email: [email protected] I checked the browser console and here are the errors: [2024-03-06T20:27:25.003Z] @firebase/firestore: Firestore (9.8.3): Could not reach Cloud Firestore backend. Connection failed 1 times. Most recent error: FirebaseError: [code=unknown]: Fetching auth token failed: Firebase: Error (auth/network-request-failed). This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.

Actually there are too many erros, copy and paste them?

AbdulHafez-Alkrudi avatar Mar 06 '24 20:03 AbdulHafez-Alkrudi

I see from the error message that my internet wasn't stable, and that was right I guess, but now it's all right so what could be the problem

AbdulHafez-Alkrudi avatar Mar 06 '24 20:03 AbdulHafez-Alkrudi

My guess is because your internet connection was unstable, Firebase failed to connect, could not load data from the server, and continued to operate in offline mode, which made it appear as if your data was lost. However, your data is likely still intact on the actual server. If you reload the page with a stable internet connection, you should see your data.

Related issue: https://github.com/cpinitiative/usaco-guide/issues/3573

Thanks for reporting this!

thecodingwizard avatar Mar 06 '24 20:03 thecodingwizard

My internet is stable now and the same thing my data wasn't loaded and the error messages all gone

AbdulHafez-Alkrudi avatar Mar 06 '24 21:03 AbdulHafez-Alkrudi

and I also tried to open from a different browser, the same problem

AbdulHafez-Alkrudi avatar Mar 06 '24 21:03 AbdulHafez-Alkrudi

these are two new errors :)

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://firestore.googleapis.com/google.firestore.v1.Firestore/Listen/channel?database=projects%2Fusaco-guide%2Fdatabases%2F(default)&gsessionid=ilre3rE4YZLR2cdF07VJlBoBsv2CEfU9e9zgUT2HQTA&VER=8&RID=rpc&SID=uaByPxI4nZKM2q66LYFmBA&CI=0&AID=18&TYPE=xmlhttp&zx=wpislx26k6qx&t=2. (Reason: CORS request did not succeed). Status code: (null).

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://firestore.googleapis.com/google.firestore.v1.Firestore/Write/channel?database=projects%2Fusaco-guide%2Fdatabases%2F(default)&gsessionid=5WVjVQdwBB9VG6AEzD2LWq_3tij5M9EEf5WzBa360QM&VER=8&RID=rpc&SID=TC0zSUjDgzveFE4VeeqV7Q&CI=0&AID=2&TYPE=xmlhttp&zx=8vcaabenspyl&t=2. (Reason: CORS request did not succeed). Status code: (null).

AbdulHafez-Alkrudi avatar Mar 06 '24 21:03 AbdulHafez-Alkrudi

Your browser or an extension or your ISP or something is blocking your ability to connect to Firebase; I don't know why. What geographical region are you located in?

I did check and your data is on our server. The last problem you marked as "Solved" was usaco-994.

thecodingwizard avatar Mar 09 '24 22:03 thecodingwizard

Closing due to no recent updates, please reopen if there are any.

bqi343 avatar Jun 19 '24 15:06 bqi343