Internal server error with id CB066169-31C0-C629-FFFE-090B3C39E500

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)




        let word = searchBar.text?.lowercaseString

        let query = BackendlessDataQuery()

        query.whereClause = "name='\(word)'"

        query.queryOptions.pageSize = PAGESIZE


            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 =

                    self.detailLbl.text = one.detail







            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)




Any help would be appreciated.

Thanks in advance

Hi Hermes,

How did you determine that the query returns 65535 results?


Hey Mark.

I did a debug with a breakpoint at that line.

Actually now the query returns 0 values even when I’m looking for a known value


If you can determine what causes an internal server error to happen, please let me know. If would be the best if you could just send me the code that makes it happen (


Hi Mark.

Nevermind, the error has gone, however it wasn’t the root cause of the problem, it seemed that by taking the value from the text box within my app and passing it directly to the query is giving an empty value to look for, I fixed it by instantiating another String with the value from the previously obtained and then passing that one to the query, like this:

        let word = bar.text?.lowercaseString

        let lookFor : String = word!

        let query = BackendlessDataQuery()

        query.whereClause = "name='\(lookFor)'"

Thanks so much for your time and support.