Search code examples
iosfirebasefirebase-realtime-databasefirebase-queue

FATAL ERROR: Firebase Queue Issue, can't delete the node


I got a node named feeder for handling the firebase queue.

Crazy thing is : I post the following payload to the feeder node but after adding several of them . I cannot delete the payload in the node.

If I do delete then the payload in the feeder node then the data in the node re-appears.

P.S: I am going crazing finding out what is the issue from past 2 days. Can anyone point what may be the issue ?

ADDED: If firebase queue has not finished doing the task then can't we forefully delete the payload in the node ????

TO ADD TO NODE::

CODE TO SET VALUE TO FIREBASE 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")
                }
            })

TO DELETE:

To delete the node I simply : Go to Firebase Console and delete the node

Help Help !! **Why can't I delete the data from the firebase node ?? ** enter image description here


Solution

  • @everybody thanks for the comment :

    Issue was because of the observer, When there was changes in the node , it fired the notifications so caused an issue.