【发布时间】:2020-09-30 10:38:07
【问题描述】:
我想从我的实时数据库中删除一个节点 (~13mb)。我将 cli 与firebase database:remove '/node' 一起使用,但我得到了An unexpcted error。调试文件说:
[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)
当我执行firebase database:get '/node' 时,我得到了正确的值。
我已经更新了 firebase-tools 并进行了新的初始化。
【问题讨论】:
标签: firebase firebase-realtime-database firebase-cli