I was working with Firebase with Angular framework in a project. I was using Firebase for sending push notifications. I followed this medium article and did like this. Everything was perfect up to allowing notification alerts. But after that token didn't print on the console and this error popped up.
`
notifications.component.ts:169 FirebaseError: Installations: Create Installation request failed with error "403 PERMISSION_DENIED: Requests to this API firebaseinstallations.googleapis.com method google.firebase.installations.v1.FirebaseInstallationsService.CreateInstallation are blocked." (installations/request-failed).
at index.esm2017.js:94:26
at Generator.next (<anonymous>)
at asyncGeneratorStep (asyncToGenerator.js:3:1)
at _next (asyncToGenerator.js:25:1)
at ZoneDelegate.invoke (zone.js:372:1)
at Object.onInvoke (core.mjs:25488:1)
at ZoneDelegate.invoke (zone.js:371:1)
at Zone.run (zone.js:134:1)
at zone.js:1276:1
at ZoneDelegate.invokeTask (zone.js:406:1)
`
And I found this StackOverflow answer as well and I did the same as that suggested. But still it gives the error.
Can someone help me with this?
Related
i'm in trouble to connect Firebase to next 13, already search for it on internet and a lot of people had similar problems
Error:
[debug] [2023-02-08T18:54:22.084Z] TypeError: Cannot read properties of null (reading 'toString')
at ɵcodegenFunctionsDirectory (C:\Users\idieg\AppData\Roaming\npm\node_modules\firebase-tools\lib\frameworks\next\index.js:222:18)
at async prepareFrameworks (C:\Users\idieg\AppData\Roaming\npm\node_modules\firebase-tools\lib\frameworks\index.js:306:84)
at async deploy (C:\Users\idieg\AppData\Roaming\npm\node_modules\firebase-tools\lib\deploy\index.js:53:13)
[error]
[error] Error: An unexpected error has occurred.
also like to clarify that i already can emulate this without bugs and also ran the firebase experiments:enable webframeworks but i need to deploy it.
after calling firebase init in vs code terminal, then opting Hosting, then opting to choose the existing projects
i am facing the below error
Error: Failed to list Firebase projects. See firebase-debug.log for more info.
how should i resolve it?
firebase log file
at Client.doRequest (/usr/local/lib/node_modules/firebase-tools/lib/apiv2.js:209:23)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Client.request (/usr/local/lib/node_modules/firebase-tools/lib/apiv2.js:96:20)
at async getProjectPage (/usr/local/lib/node_modules/firebase-tools/lib/management/projects.js:233:17)
at async getFirebaseProjectPage (/usr/local/lib/node_modules/firebase-tools/lib/management/projects.js:250:23)
at async selectProjectInteractively (/usr/local/lib/node_modules/firebase-tools/lib/management/projects.js:95:41)
at async Object.doSetup [as project] (/usr/local/lib/node_modules/firebase-tools/lib/init/features/project.js:87:27)
at async init (/usr/local/lib/node_modules/firebase-tools/lib/init/index.js:19:9)
[error]
[error] Error: Failed to list Firebase projects. See firebase-debug.log for more info.
please guide
So, issue is simple at first glance:
createUserWithEmailAndPassword() method on Flutter web does not work on my project.
It just gives this error evey time:
xhrio.js:630 POST https://www.googleapis.com/identitytoolkit/v3/relyingparty/signupNewUser?key=//here is my key, obviosly not showing
net::ERR_CONNECTION_REFUSED
and
errors.dart:187 Uncaught (in promise) Error: [firebase_auth/network-request-failed] A network error (such as timeout, interrupted connection or unreachable host) has occurred.
at Object.throw_ [as throw] (errors.dart:236)
at firebase_auth_web.FirebaseAuthWeb.new.createUserWithEmailAndPassword (firebase_auth_web.dart:157)
at createUserWithEmailAndPassword.throw (<anonymous>)
at async_patch.dart:60
at _RootZone.runBinary (zone.dart:1617)
at _FutureListener.thenAwait.handleError (future_impl.dart:166)
at handleError (future_impl.dart:716)
at Function._propagateToListeners (future_impl.dart:737)
at _Future.new.[_completeError] (future_impl.dart:547)
at async._AsyncCallbackEntry.new.callback (future_impl.dart:603)
at Object._microtaskLoop (schedule_microtask.dart:40)
at _startMicrotaskLoop (schedule_microtask.dart:49)
at async_patch.dart:166
PLEASE BE NOTED - flutter doctor is COMPLETELY GREEN, all is connected, et cetera et cetera. Trust me, i'm not a newbie at this one. And all is working perfectly on adroid emulator.
I've tried everything. Adressed it on reddit, created issue in github - nothing.
Any ideas?
Checking windows hosts file worked (i edited it for my purposes).
I really do not know the advice. No facebook application settings work.
Thank you
XMM-b79-1BK.js:44 Uncaught Error: Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.
at a (XMM-b79-1BK.js:44)
at a (XMM-b79-1BK.js:121)
at x (XMM-b79-1BK.js:193)
at Object.b.post [as log] (XMM-b79-1BK.js:193)
at a.logVital (XMM-b79-1BK.js:219)
at XMM-b79-1BK.js:293
at Array.forEach (<anonymous>)
at IntersectionObserver.f.threshold (XMM-b79-1BK.js:293)
It is a known bug, you can subscribe here: https://developers.facebook.com/support/bugs/1337180213092053/
I get the a Firebase Error: Failed to execute 'setItem' on 'Storage' - exceeded the quota.
I'm on the blaze plan so I shouldn't get this error.
This occurs on login with social media e.g. facebook.
Works fine in firefox but I got this error in chrome and chrome is the browser I commonly use.
This is the exact console error message:
app.js?1480624277794:36 Error: Failed to execute 'setItem' on 'Storage': Setting the value of 'firebase:session::mywebsite' exceeded the quota.
at vc.g.set (firebase.js:13)
at wg.set (firebase.js:52)
at Wg (firebase.js:61)
at Object.eval [as zc] (firebase.js:60)
at eval (firebase.js:77)
at Kh.g.Id (firebase.js:78)
at yh.Id (firebase.js:75)
at qh.eval [as zg] (firebase.js:74)
at th (firebase.js:70)
at WebSocket.ua.onmessage (firebase.js:70)