Hi, I’m getting an internal error
Internal server error with id CB066169-31C0-C629-FFFE-090B3C39E500
App id: 2A0C7717-B5AC-0B96-FF64-5DD2DD3E8200
Showed in console after trying to make an unsuccessful query which return 65535 results even when there is just one row in the table.
In the code, it never gets to the Loop, it stops in “let currentPage = types.getCurrentPage()” but no error is thrown
func searchBarSearchButtonClicked(searchBar: UISearchBar)
{
Bar.resignFirstResponder()
let word = searchBar.text?.lowercaseString
let query = BackendlessDataQuery()
query.whereClause = "name='\(word)'"
query.queryOptions.pageSize = PAGESIZE
backendless.persistenceService.of(ClassName.ofClass()).find(
query ,
response: { (let types : BackendlessCollection!) -> () in
let currentPage = types.getCurrentPage()
print("in response")
for typo in currentPage {
var one : ClassName = typo as! ClassName
self.titleLbl.text = one.name
self.detailLbl.text = one.detail
}
dispatch_async(dispatch_get_main_queue())
{
self.Bar.resignFirstResponder()
}
},
error: { (var fault : Fault!) -> () in
print("Server reported an error: \(fault)")
let alert = UIAlertController(title: "error", message:
"\(fault!.description)", preferredStyle: UIAlertControllerStyle.Alert)
alert.addAction(UIAlertAction(title: "Ok", style: UIAlertActionStyle.Default,handler: nil))
self.presentViewController(alert, animated: true, completion: nil)
return
})
}
Any help would be appreciated.
Thanks in advance