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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Stack Overflow by 118218
, 1 year ago
Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject
via GitHub by danieloprado
, 1 year ago
Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject
via GitHub by enchev
, 1 year ago
Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject
via GitHub by danieloprado
, 1 year ago
Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject
via GitHub by leitonghu
, 5 months ago
Value live_100006 of type java.lang.String cannot be converted to JSONObject
org.json.JSONException: Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject
at org.json.JSON.typeMismatch(JSON.java:111)
at org.json.JSONObject.(JSONObject.java:160)
at org.json.JSONObject.(JSONObject.java:173)
at com.krown.eat_out.libraries.JSONParser.getJSONFromUrl(JSONParser.java:43)
at com.krown.eat_out.libraries.UserFunctions.confirmDeal(UserFunctions.java:161)
at com.krown.eat_out.ScreenSlidePageFragment$ConfirmDeal.doInBackground(ScreenSlidePageFragment.java:466)
at com.krown.eat_out.ScreenSlidePageFragment$ConfirmDeal.doInBackground(ScreenSlidePageFragment.java:440)
at android.os.AsyncTask$2.call(AsyncTask.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)

Users with the same issue

2 times, 2 months ago
4 times, 7 months ago
17 times, 9 months ago
56 times, 1 year ago
2 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.