Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with auth-service-worker.js #308

Open
COSSART-FR opened this issue Sep 6, 2024 · 2 comments · May be fixed by #307
Open

Error with auth-service-worker.js #308

COSSART-FR opened this issue Sep 6, 2024 · 2 comments · May be fixed by #307

Comments

@COSSART-FR
Copy link

Hello, with nextjs-end i have this error in my chrome console, and i have infinite loading.

Uncaught (in promise) TypeError: Failed to fetch
at fetchWithFirebaseHeaders (auth-service-worker.js?firebaseConfig=....573c6%22%7D:8013:18)

@jamesdaniels jamesdaniels linked a pull request Sep 11, 2024 that will close this issue
5 tasks
@r-dev-limited
Copy link

Also when token is invalid it crashes and whole site will not load (when you are switching between live & emulated instance)
Then token from one instance might stay in cache, and when running live...worker will crash and does not load site after

@Flucadetena
Copy link

In case it helps, I had the same problem and also I was getting a "cors" error after navigating or reloading the page.

The whole problem was that when I copied and pasted the credentials in the ".env" file the order was not the correct one. As I copied and pasted without checking from Firebase to the keys already present in the file.

So I put the "NEXT_PUBLIC_FIREBASE_DATABASE_URL" value in the "NEXT_PUBLIC_FIREBASE_API_KEY", for example.

I checked all the values, updated and the problem was solved.

Hope it helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants