0
我得到了一個名爲feeder的節點來處理firebase隊列。致命錯誤:Firebase隊列問題,無法刪除節點
瘋狂的事情是: 我將以下有效載荷發佈到饋線節點,但添加了幾個後。我無法刪除節點中的有效負載。
如果我刪除然後饋線節點中的有效載荷,然後節點中的數據重新出現。
P.S: 我在瘋狂地找出過去兩天有什麼問題。 任何人都可以指出可能是什麼問題?
ADDED:如果火力隊列尚未完成執行任務那麼我們不能forefully刪除節點有效載荷????
添加到節點::
代碼來設置值,以火力NODE
FIRDatabase.database().reference(withPath: "queue/feederer").childByAutoId().setValue(["post": postid , "owner":UserController().userId!,"timestamp":FIRServerValue.timestamp()], withCompletionBlock: { (error, ref) in
if let err = error {
debugPrint(err.localizedDescription)
print("ERROR: Posting to feeder ")
}
else {
print("Posted to Feeder successfully")
}
})
刪除:
要刪除的節點我簡單:轉到Firebase控制檯並刪除節點
幫助幫助!! **爲什麼我無法從firebase節點刪除數據? **
發佈您正在使用的代碼來刪除併發布您用於檢索的代碼。 – Ro4ch
您可能想看看Firebase的Cloud Functions - 它有效地取代了firebase-queue,並且應該讓您的後端管理變得更加簡單。 https://firebase.google.com/docs/functions/ –
這裏沒有repro。如果沒有這個,我們將無法幫助您解決微妙的編碼錯誤。請參閱[如何提問](http://stackoverflow.com/help/how-to-ask)和[創建mcve](http://stackoverflow.com/help/mcve)。 – Kato