abdelkrim werchefani
abdelkrim werchefani

Reputation: 39

com.parse.ParseRequest$ParseRequestException: bad json response

I want to make a search to a row in the database. I put this query in my code

ParseQuery<ParseObject> query_names = ParseQuery.getQuery("PhoneBook");
            query_names.include("Numbers");
            query_names.whereStartsWith("Name", searchString.toLowerCase());
            query_names.setLimit( 20);
            query_names.findInBackground();

I got this exception

com.parse.ParseRequest$ParseRequestException: bad json response

Upvotes: 1

Views: 757

Answers (2)

pseudozach
pseudozach

Reputation: 416

I think you might have forgotten the trailing slash like I did. It causes this error.

.server("http://localhost:1337/parse/") // The trailing slash is important.

Upvotes: 1

abdelkrim werchefani
abdelkrim werchefani

Reputation: 39

This exception is from the parse version in my buid.gradle i have used a compile like this:

compile 'com.parse:parse-android:1.+'

the best way is to put like this

compile 'com.parse:parse-android:1.12.0'

and it will work correctly

Upvotes: 1

Related Questions