Skip to content Skip to sidebar Skip to footer

Error Android - Received Html Instead Of Json

I'm working on a Android application and I'm trying to get a JSON response from a server which is configured to return a json object ('.../current_user.json') when receives a GET m

Solution 1:

There are few cases where you get HTML text

  1. You might have called a wrong function which gives a 404 page.

  2. Might be a database error on server side where you will get database error message

  3. Server might be sending a styled data which has HTML tags

But you better Log the response and paste it here.

Post a Comment for "Error Android - Received Html Instead Of Json"