Skip to content

ANDROID SDK , NO RESULT (bad json response) #183

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
anwar-al-jahwari opened this issue Feb 2, 2016 · 7 comments
Closed

ANDROID SDK , NO RESULT (bad json response) #183

anwar-al-jahwari opened this issue Feb 2, 2016 · 7 comments

Comments

@anwar-al-jahwari
Copy link

hello ,

i have successfully migrate the data from parse to mongodb using the tools from parse ,i also installed parse server locally and its running , i have tested a query in terminal its working. However , when i tried the android sdk the app didn't show any results it show an error which says bad json response
.
screen shot 2016-02-02 at 2 02 13 pm

the result from the query

screen shot 2016-02-02 at 2 02 27 pm

the shell script which a run to query

screen shot 2016-02-02 at 2 04 38 pm

android configuration for local parse

screen shot 2016-02-02 at 2 04 56 pm

the query (same as the shell)

screen shot 2016-02-02 at 2 05 09 pm

android manifest.

the error

screen shot 2016-02-02 at 8 47 58 pm
screen shot 2016-02-02 at 8 48 13 pm

please help

@anwar-al-jahwari anwar-al-jahwari changed the title ANDROID SDK , NO RESULT ANDROID SDK , NO RESULT (bad json response) Feb 2, 2016
@theolm
Copy link

theolm commented Feb 2, 2016

i had the same problem.
try to add '/' on the end of url (http://localhost:8080/parse/)

@gfosco
Copy link
Contributor

gfosco commented Feb 3, 2016

@pccrazy Please try @theolm 's suggestion and let me know if that does not fix things.

@rciovati
Copy link

rciovati commented Feb 3, 2016

I don't think localhost is the correct hostname because it refers to the device on which the code is running (which is either the emulator or your physical device).

If you are running your app in the Android emulator you should use 10.0.2.2 instead of localhost. Otherwise use the IP or the hostname of your machine in which the server is running.

@gfosco
Copy link
Contributor

gfosco commented Feb 3, 2016

That is a good point... hehe, I didn't realize he's running it on Android.

@anwar-al-jahwari
Copy link
Author

@gfosco @rciovati @theolm thanks guys i will try it now , i will let you know what happens

@anwar-al-jahwari
Copy link
Author

@gfosco @rciovati @theolm hi guys i have tried it , it seems i am having issues with my localhost so i upload the app in google app engine then i just added / in the last last of url and it did work finally thank you too much i appreciate it

here is an ex of google app engine url
https://.appspot.com/parse/

@abdallahnh
Copy link

for android the server link https://localhost:1337/parse/1/
this worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants