jkomoros / card-web

The web app behind thecompendium.cards
Apache License 2.0
46 stars 8 forks source link

On some loads, it never realizes an admin may edit cards #690

Open jkomoros opened 3 months ago

jkomoros commented 3 months ago

Seems to be happening more with 13k cards in production. After a few refreshes, one of them will notice that the user has editor permissions.

jkomoros commented 3 weeks ago

An example error when this happens:

card-web-app-b8587828.js:1 [2024-06-24T14:56:43.457Z] @firebase/firestore: Firestore (10.11.0): Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds. 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. r @ card-web-app-b8587828.js:1 error @ card-web-app-b8587828.js:1 Nc @ card-web-app-b8587828.js:1 w @ card-web-app-b8587828.js:1 (anonymous) @ card-web-app-b8587828.js:1 (anonymous) @ card-web-app-b8587828.js:1 (anonymous) @ card-web-app-b8587828.js:1 (anonymous) @ card-web-app-b8587828.js:1 Promise.then (async) hu @ card-web-app-b8587828.js:1 enqueue @ card-web-app-b8587828.js:1 enqueueAndForget @ card-web-app-b8587828.js:1 handleDelayElapsed @ card-web-app-b8587828.js:1 (anonymous) @ card-web-app-b8587828.js:1Understand this error card-web-app-b8587828.js:1 Uncaught (in promise) FirebaseError: Failed to get document because the client is offline.

jkomoros commented 3 weeks ago

A few things to try: