org.json.JSONException: Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject

Stack Overflow | 118218 | 5 months ago
  1. 0

    Android app can no more fetch JSON from my API (dedicated server) after server migration

    Stack Overflow | 5 months ago | 118218
    org.json.JSONException: Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject
  2. 0

    Error Report: Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject

    GitHub | 2 years ago | rastating
    org.json.JSONException: Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject
  3. 0

    Error Report: Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject

    GitHub | 2 years ago | rastating
    org.json.JSONException: Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error Report: Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject

    GitHub | 2 years ago | rastating
    org.json.JSONException: Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject
  6. 0

    App crashes when send push notifications

    GitHub | 12 months ago | rajkotraja
    org.json.JSONException: Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject

  1. filpgame 13 times, last 1 week ago
  2. bluebunnty 1 times, last 1 month ago
  3. ajinkya_w 4 times, last 1 month ago
  4. pranavprakash 4 times, last 1 month ago
  5. Ranjana Dangol 2 times, last 5 months ago
12 more registered users
32 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.json.JSONException

    Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject

    at org.json.JSON.typeMismatch()
  2. Android Platform
    JSONObject.<init>
    1. org.json.JSON.typeMismatch(JSON.java:111)
    2. org.json.JSONObject.<init>(JSONObject.java:160)
    3. org.json.JSONObject.<init>(JSONObject.java:173)
    3 frames
  3. com.krown.eat_out
    ScreenSlidePageFragment$ConfirmDeal.doInBackground
    1. com.krown.eat_out.libraries.JSONParser.getJSONFromUrl(JSONParser.java:43)
    2. com.krown.eat_out.libraries.UserFunctions.confirmDeal(UserFunctions.java:161)
    3. com.krown.eat_out.ScreenSlidePageFragment$ConfirmDeal.doInBackground(ScreenSlidePageFragment.java:466)
    4. com.krown.eat_out.ScreenSlidePageFragment$ConfirmDeal.doInBackground(ScreenSlidePageFragment.java:440)
    4 frames
  4. Android Platform
    AsyncTask$2.call
    1. android.os.AsyncTask$2.call(AsyncTask.java:295)
    1 frame
  5. Java RT
    FutureTask.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:237)
    1 frame
  6. Android Platform
    AsyncTask$SerialExecutor$1.run
    1. android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
    1 frame
  7. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
    3. java.lang.Thread.run(Thread.java:818)
    3 frames