1

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

5
  • what is AsyncrechercheTask? and where is used this response? Commented Jan 6, 2016 at 15:57
  • AsyncrechercheTask dont have any role Commented Jan 6, 2016 at 16:01
  • I'm getting the same error from a different input as well, starting last night. I've narrowed it down to where you log in/initialize parse/put in the keys and found out it wasn't going through at that point. Try clearing your app data. If anyone is getting the same error for similar things please let me know! Commented Jan 6, 2016 at 16:20
  • Please let me know if you find any solution Commented Jan 6, 2016 at 17:43
  • Am sorry i dont found any solution yet Commented Jan 6, 2016 at 17:45

2 Answers 2

1

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

Sign up to request clarification or add additional context in comments.

Comments

1

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.