After changing a cloud function Iām getting the following error for any write operation to my database: FirebaseError: invalid stream token. After changing the functions back and redeploying, the error still remains. I was unable to find any reference to this error in Firebase docs. Anyone know what this is about?
I "solved" this. For anyone else who runs into the error:
> rm package-lock.json
> rm -rf node-modules/
> npm install
Would still be nice to have a reference to this somewhere though.
Related
I've made a Shinyapp, and try to turn it into a standalone application through Nodejs and Electron.
I've sucessfully made it on Windows. However, when I work on macOS, I encounter this error:
A JavaScript error occurred in the main process
Uncaught Exception: Error: spawn {path of electron file} Enoent at ...the error displayed
Guess there's something wrong in Nodejs, but I'm a total newbie to nodejs. Have tried to add the file path into PATH environment variable, but it did not wrok. The same error appears.
Looking for someone who can help me sort it out.
I appreciate any help from you!!
I want to remove a node (~13mb) from my realtime database. I use cli with firebase database:remove '/node' but i am getting An unexpcted error. Debug file says:
[debug] [2020-09-30T10:17:16.845Z] TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received undefined
at validateString (internal/validators.js:122:11)
at Url.parse (url.js:159:3)
at urlParse (url.js:154:13)
at Url.resolve (url.js:667:29)
at Object.urlResolve [as resolve] (url.js:663:40)
at Object.getDatabaseUrl (/usr/local/lib/node_modules/firebase-tools/lib/utils.js:62:26)
at Command.actionFn (/usr/local/lib/node_modules/firebase-tools/lib/commands/database-remove.js:33:32)
at Command.<anonymous> (/usr/local/lib/node_modules/firebase-tools/lib/command.js:166:25)
at Generator.next (<anonymous>)
at fulfilled (/usr/local/lib/node_modules/firebase-tools/lib/command.js:5:58)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
When i do a firebase database:get '/node' i am getting the correct values.
I already updated firebase-tools and did a new init.
I experienced a similar problem today and submitted this as an issue on the firebase-tools GitHub:
https://github.com/firebase/firebase-tools/issues/2667
I manually added a trivial key to the database and firebase database:remove had the same problem attempting to remove it.
Hopefully others there can reproduce and solve it.
(I would have commented this if I had the reps... But perhaps watching the issue get addressed over there is the true answer anyway š¤·)
Edit: Resolved with Changelog for database:remove command fix #2658 merged into master and released in version 8.12.0 -
Works great š
firebase login --debug
i Firebase optionally collects CLI usage and error reporting information to help improve our products. Data is collected in accordance with Google's privacy policy (https://policies.google.com/privacy) and is not used to identify you.
? Allow Firebase to collect CLI usage and error reporting information? Yes
i To change your data collection preference at any time, run firebase logout and log in again.
Visit this URL on this device to log in:
https://accounts.google.com/o/oauth2/auth?client_id=563584335869-fgrhgmd47bqnekij5i8b5pr03ho849e6.apps.googleusercontent.com&scope=email%20openid%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloudplatformprojects.readonly%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Ffirebase%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platform&response_type=code&state=151882733&redirect_uri=http%3A%2F%2Flocalhost%3A9005
Waiting for authentication...
[2020-04-21T13:30:57.183Z] Error: spawn cmd ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
Error: An unexpected error has occurred.
Having trouble? Try again or contact support with contents of firebase-debug.log
This problem's solution may depend on the type of OS one is using if you are using window first run cmd as an administrator then type firebase login this should solve this problem and if your OS is Linux you may need to do sudo firebase login can be solved by
I'm following a course of ionic and I need to store a picture on firebase database, at that point we should install firebase-tools, which I do by executing as admin:
npm install -g firebase-tools
But then the course says you should execute:
firebase init
and then I receive the following error:
Error: An unexpected error has occurred.
This generic error with nothing else.
Any ideas of how to solve this?
If you execute:
firebase init --debug
This gives you more info about the error.
It might be something about credentials or login information which can be solved by executing:
firebase login
I get this Error when trying to start my application on my server with the command:
meteor
error:
Error: EISDIR: illegal operation on a directory, unlink '/home/.../.../myapp/.meteor /local/dev_bundle'
at Error (native)
at Object.fs.unlinkSync (fs.js:932:18)
at exports.makeLink (/tools/cli/dev-bundle-links.js:20:8)
at [object Object].ensureDevBundleLink (/tools/project-context.js:1416:7)
at [object Object]._readFile (/tools/project-context.js:1350:10)
at new exports.ReleaseFile (/tools/project-context.js:1300:8)
at /tools/cli/main.js:825:22
My app is running fine on my dev. win. machine.
I have no idea what is causing the error, please help.
I got it working by manually removing all directories and links where the name started with "dev_bundle" inside the "/.meteor/local" directory.
Hope this helps!
Also update meteor to the latest version using meteor update and then follow #henk's solution.
This worked for me.