{"action":"created","issue":{"url":"https://api.github.com/repos/parse-community/ParseLiveQuery-iOS-OSX/issues/157","repository_url":"https://api.github.com/repos/parse-community/ParseLiveQuery-iOS-OSX","labels_url":"https://api.github.com/repos/parse-community/ParseLiveQuery-iOS-OSX/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/parse-community/ParseLiveQuery-iOS-OSX/issues/157/comments","events_url":"https://api.github.com/repos/parse-community/ParseLiveQuery-iOS-OSX/issues/157/events","html_url":"https://github.com/parse-community/ParseLiveQuery-iOS-OSX/issues/157","id":309442758,"number":157,"title":"Query findObjectsInBackground outstanding network connection crash.","user":{"login":"TulioUseMobile","id":28149468,"avatar_url":"https://avatars0.githubusercontent.com/u/28149468?v=4","gravatar_id":"","url":"https://api.github.com/users/TulioUseMobile","html_url":"https://github.com/TulioUseMobile","followers_url":"https://api.github.com/users/TulioUseMobile/followers","following_url":"https://api.github.com/users/TulioUseMobile/following{/other_user}","gists_url":"https://api.github.com/users/TulioUseMobile/gists{/gist_id}","starred_url":"https://api.github.com/users/TulioUseMobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TulioUseMobile/subscriptions","organizations_url":"https://api.github.com/users/TulioUseMobile/orgs","repos_url":"https://api.github.com/users/TulioUseMobile/repos","events_url":"https://api.github.com/users/TulioUseMobile/events{/privacy}","received_events_url":"https://api.github.com/users/TulioUseMobile/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-28T16:35:39Z","updated_at":"2018-03-28T16:55:09Z","closed_at":"2018-03-28T16:45:26Z","author_association":"NONE","body":"Hi, I am trying to observe a live query, but when I call the method findObjectsInBackground, the app crashes with the message: 'This query has an outstanding network connection. You have to wait until it's done.'\r\n\r\n`class func observeTravel(travelId: String, completion: @escaping (Travel) -> Swift.Void) {\r\n        let travelQuery = ServiceParse.travelQuery\r\n        travelQuery.whereKey(\"objectId\", equalTo: travelId)\r\n        travelQuery.includeKey(\"driver\")\r\n        travelQuery.includeKey(\"passenger\")\r\n        travelQuery.includeKey(\"vehicle\")\r\n        travelQuery.includeKey(\"originAddress\")\r\n        travelQuery.includeKey(\"destinyAddress\")\r\n        travelQuery.findObjectsInBackground(block: { (travels, error) in\r\n            if error == nil {\r\n                completion(travels!.first!)\r\n            }\r\n        })\r\n        ServiceParse.subscription = ServiceParse.liveQuery.subscribe(travelQuery).handle(Event.updated) { (_, travel) in\r\n            completion(travel)\r\n        }\r\n    }`\r\n\r\nCan anyone help me?"},"comment":{"url":"https://api.github.com/repos/parse-community/ParseLiveQuery-iOS-OSX/issues/comments/376958325","html_url":"https://github.com/parse-community/ParseLiveQuery-iOS-OSX/issues/157#issuecomment-376958325","issue_url":"https://api.github.com/repos/parse-community/ParseLiveQuery-iOS-OSX/issues/157","id":376958325,"user":{"login":"TulioUseMobile","id":28149468,"avatar_url":"https://avatars0.githubusercontent.com/u/28149468?v=4","gravatar_id":"","url":"https://api.github.com/users/TulioUseMobile","html_url":"https://github.com/TulioUseMobile","followers_url":"https://api.github.com/users/TulioUseMobile/followers","following_url":"https://api.github.com/users/TulioUseMobile/following{/other_user}","gists_url":"https://api.github.com/users/TulioUseMobile/gists{/gist_id}","starred_url":"https://api.github.com/users/TulioUseMobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TulioUseMobile/subscriptions","organizations_url":"https://api.github.com/users/TulioUseMobile/orgs","repos_url":"https://api.github.com/users/TulioUseMobile/repos","events_url":"https://api.github.com/users/TulioUseMobile/events{/privacy}","received_events_url":"https://api.github.com/users/TulioUseMobile/received_events","type":"User","site_admin":false},"created_at":"2018-03-28T16:55:09Z","updated_at":"2018-03-28T16:55:09Z","author_association":"NONE","body":"Ok, thank you for the feedback."}}
{"actor":{"display_login":"TulioUseMobile"}}