Firebase Unable to fetch the CLI MOTD and remote config - firebase

when trying to firebase deploy, getting this
! Unable to fetch the CLI MOTD and remote config.
and then it stops with:
Error: An unexpected error has occurred.
Anyone an idea?
It worked before, I didn't change anything. Windows 10, VSCode.

Try to logout from firebase and then login again

Related

Firebase cloud functions deployment error "Invalid source token"

While running a a deployment for firebase cloud functions, I got this error
Invalid source token.
There seems to be no documentation anywhere about the cause or fixes.
I once experienced this error before.
Re-running the deployments seems to fix the issue.

Firebase Functions are not working after deploying (MAC - OS)

Trying to deploy firebase functions..which deploys fine after giving warning on the first try
console warning:
Functions deploy had errors with the following functions:
To try redeploying those functions, run:
firebase deploy --only functions:
To continue deploying other features (such as database), run:
firebase deploy --except functions
redeploying does not give any error in console and functions deploys without any problem
but calling the function does not show any logs in firebase console, while giving this error in chrome console
Error: Forbidden
Your client does not have permission to get URL /sampleFunc from this server.
So I contacted firebase support and there seems to be an issue with functions:
here is what they replied:
There is an ongoing issue with the deployment of new functions as they are deployed as private, please update to the latest version 8.0.0 of the CLI with the command: npm install -g firebase-tools, which it might fix the error.
Our engineering team is already working to solve this issue, however there is no tell on when this fix will be released. At the moment the only workaround for this is to manually set a function to public using Cloud Console or gcloud CLI.
Let me know if you have more questions
Cheers,

Getting Firebase emulator error because non-existent SDK is not enabled

I'm trying to get some Firebase functions emulated locally, and have followed Google's local emulator instructions. When I run firebase serve I get this error:
Error from emulator. FirebaseError: HTTP Error: 403,
Mobile SDK API has not been used in project <my project ID>
before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/mobilesdk-pa.googleapis.com/overview?project=<my project ID> then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
Seems straightforward, except that when I follow the supplied URL I get an error because the "Mobile SDK API" does not exist. I've tried searching on Google's API page as well and there is definitely not an API with that name.
Anybody know how I can get around this issue?
(I also tried firebase functions:shell and get the same error)
I got this issue fixed by logging into firebase, since the error was showing on a different machine.
After running firebase login and the authentication process, firebase serve worked without issues.
I was having the same problem and fixed it for myself. I was running Node v11.14.0 and downgraded to the latest version of Node 8 (v 8.16.0).
In my case, the problem was that I was running an outdated version of firebase-tools on the CLI. Running npm update firebase-tools resolved the issue.

Zeit now deployment errors

I have just completed the next.js tutorial and have created a simple app. I am now trying to deploy the app with Zeit Now, although when I type 'now' into the windows powershell I get an error: Error! EPERM: operation not permitted, scandir 'C:\Users\Craig\AppData\Local\Microsoft\Windows\Temporary Internet Files'
I have to tried to google some solutions but have had no luck so far. Can anyone see from the error what I need to do to fix this?
Cheers
Run your powershell as administrator and deploy the project like you normally would. Then you will have access to the directory.

Cannot read property firebase of undefined error

I done what the plugin said, but i am getting this error...
I am only calling firebase plugin like these:
var firebasePlugin = require("nativescript-plugin-firebase")
If I delete the line, there is no error.
Here is the virtual device screen.
Last logs
tns run android
command solved my problem.
Thanks #MarekMaszay

Resources