{"action":"created","issue":{"url":"https://api.github.com/repos/Fmstrat/ownnote/issues/202","labels_url":"https://api.github.com/repos/Fmstrat/ownnote/issues/202/labels{/name}","comments_url":"https://api.github.com/repos/Fmstrat/ownnote/issues/202/comments","events_url":"https://api.github.com/repos/Fmstrat/ownnote/issues/202/events","html_url":"https://github.com/Fmstrat/ownnote/issues/202","id":94612104,"number":202,"title":"Android: org.json.JSONException when trying to dowload","user":{"login":"LogicalDash","id":1334358,"avatar_url":"https://avatars.githubusercontent.com/u/1334358?v=3","gravatar_id":"","url":"https://api.github.com/users/LogicalDash","html_url":"https://github.com/LogicalDash","followers_url":"https://api.github.com/users/LogicalDash/followers","following_url":"https://api.github.com/users/LogicalDash/following{/other_user}","gists_url":"https://api.github.com/users/LogicalDash/gists{/gist_id}","starred_url":"https://api.github.com/users/LogicalDash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LogicalDash/subscriptions","organizations_url":"https://api.github.com/users/LogicalDash/orgs","repos_url":"https://api.github.com/users/LogicalDash/repos","events_url":"https://api.github.com/users/LogicalDash/events{/privacy}","received_events_url":"https://api.github.com/users/LogicalDash/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Fmstrat/ownnote/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-13T00:13:39Z","updated_at":"2015-07-14T12:56:52Z","closed_at":null,"body":"I have ownCloud 8.0.4 installed at https://example.com/owncloud/\r\n\r\nNotes app is enabled and works fine in the browser. I have a valid Comodo SSL cert.\r\n\r\nWhen I ask MyOwnNotes to sync with this server, it complains that it doesn't receive valid JSON. This is what appears in the logcat:\r\n\r\n```\r\nD/NoteListActivity(28787): download connection ok, doing the downloading\r\nW/System.err(28787): org.json.JSONException: Value <!DOCTYPE of type java.lang.String cannot be converted to JSONArray\r\nW/System.err(28787):    at org.json.JSON.typeMismatch(JSON.java:111)\r\nW/System.err(28787):    at org.json.JSONArray.<init>(JSONArray.java:96)\r\nW/System.err(28787):    at org.json.JSONArray.<init>(JSONArray.java:108)\r\nW/System.err(28787):    at org.aykit.owncloud_notes.NoteListActivity.updateDatabase(NoteListActivity.java:513)\r\nW/System.err(28787):    at org.aykit.owncloud_notes.NoteListActivity$DownloadNotesTask.onPostExecute(NoteListActivity.java:1264)\r\nW/System.err(28787):    at org.aykit.owncloud_notes.NoteListActivity$DownloadNotesTask.onPostExecute(NoteListActivity.java:1129)\r\nW/System.err(28787):    at android.os.AsyncTask.finish(AsyncTask.java:632)\r\nW/System.err(28787):    at android.os.AsyncTask.access$600(AsyncTask.java:177)\r\nW/System.err(28787):    at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)\r\nW/System.err(28787):    at android.os.Handler.dispatchMessage(Handler.java:102)\r\nW/System.err(28787):    at android.os.Looper.loop(Looper.java:135)\r\nW/System.err(28787):    at android.app.ActivityThread.main(ActivityThread.java:5254)\r\nW/System.err(28787):    at java.lang.reflect.Method.invoke(Native Method)\r\nW/System.err(28787):    at java.lang.reflect.Method.invoke(Method.java:372)\r\nW/System.err(28787):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:898)\r\nW/System.err(28787):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:693)\r\nE/NoteListActivity(28787): no correct JSON data returned from server. result from server:<!DOCTYPE html><!--[if lt IE 7]><html class=\"ng-csp ie ie6 lte9 lte8 lte7\" data-placeholder-focus=\"false\" lang=\"en\"><![endif]--><!--[if IE 7]><html class=\"ng-csp ie ie7 lte9 lte8 lte7\" data-placeholder-focus=\"false\" lang=\"en\" ><![endif]--><!--[if IE 8]><html class=\"ng-csp ie ie8 lte9 lte8\" data-placeholder-focus=\"false\" lang=\"en\" ><![endif]--><!--[if IE 9]><html class=\"ng-csp ie ie9 lte9\" data-placeholder-focus=\"false\" lang=\"en\" ><![endif]--><!--[if gt IE 9]><html class=\"ng-csp ie\" data-placeholder-focus=\"false\" lang=\"en\" ><![endif]--><!--[if !IE]><!--><html class=\"ng-csp\" data-placeholder-focus=\"false\" lang=\"en\" ><!--<![endif]-->        <head data-user=\"sanotehu\" data-requesttoken=\"SntHu8e/Jb7csqrepOyazb/HgOLvXH\">          <title>                 Files - ownCloud                </title>                <meta charset=\"utf-8\">          <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\" />             <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0\">            <meta name=\"apple-itunes-app\" content=\"app-id=543672169\">            <meta name=\"apple-mobile-web-app-capable\" content=\"yes\">                <meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black\">             <meta name=\"apple-mobile-web-app-title\" content=\"ownCloud\">         <meta name=\"mobile-web-app-capable\" content=\"yes\">               <link rel=\"shortcut icon\" type=\"image/png\" href=\"/owncloud/core/img/favicon.png\" />             <link rel=\"apple-touch-icon-precomposed\" href=\"/owncloud/core/img/favicon-touch.png\" />                                      <link rel=\"stylesheet\" href=\"/owncloud/core/css/styles.css?v=4bb5d820ecc90794f0a113d5bb2d7a3f\" type=\"text/css\" media=\"screen\" />                                        <link rel=\"stylesheet\" href=\"/owncloud/core/css/header.css?v=4bb5d820ecc90794f0a113d5bb2d7a3f\" type=\"text/css\" media=\"screen\" />                                     <link rel=\"stylesheet\" href=\"/owncloud/core/css/mobile.css?v=4bb5d820ecc90794f0a113d5bb2d7a3f\" type=\"text/css\" media=\"screen\" />                                     <link rel=\"stylesheet\" href=\"/owncloud/core/css/icons.css?v=4bb5d820ecc90794f0a113d5bb2d7a3f\" type=\"text/css\" media=\"screen\" />                                 <link rel=\"stylesheet\" href=\"/owncloud/core/css/fonts.css?v=4bb5d820ecc90794f0a113d5bb2d7a3f\" type=\"text/css\" media=\"screen\" />                                      <link rel=\"stylesheet\" href=\"/owncloud/core/css/apps.css?v=4bb5d820ecc90794f0a113d5bb2d7a3f\" type=\"text/css\" media=\"screen\" />                                       <link rel=\"stylesheet\" href=\"/owncloud/core/css/fixes.css?v=4bb5d820ecc90794f0a113d5bb2d7a3f\" type=\"text/css\" media=\"screen\" />                     <link rel=\"stylesheet\" href=\"/owncloud/core/css/multiselect.css?v=4bb5d820ecc90794f0a113d5bb2d7a3f\" type=\"text/css\" media=\"screen\" />                                    <link rel=\"stylesheet\" href=\"/owncloud/core/vendor/jquery-ui/themes/base/jquery-ui.css?v=4bb5d820ecc90794f0a113d5bb2d7a3f\" type=\"text/css\" media=\"screen\" />                                 <link rel=\"stylesheet\" href=\"/owncloud/core/css/jquery-ui-fixes.css?v=4bb5d820ecc90794f0a113d5bb2d7a3f\" type=\"text/css\" media=\"screen\" />                                    <link rel=\"stylesheet\" href=\"/owncloud/core/css/jquery-tipsy.css?v=4bb5d820ecc90794f0a113d5bb2d7a3f\" type=\"text/css\" media=\"screen\" />                                  <link rel=\"stylesheet\" href=\"/owncloud/core/css/jquery.ocdialog.css?v=4bb5d820ecc90794f0a113d5bb2d7a3f\" type=\"text/css\" media=\"screen\" />                                    <link rel=\"stylesheet\" href=\"/owncloud/core/css/share.css?v=4bb5d820ecc90794f0a113d5bb2d7a3f\" type=\"text/css\" media=\"screen\" />                                      <link rel=\"stylesheet\" href=\"/owncloud/apps/files_versions/css/versions.css?v=4bb5d820ecc90794f0a113d5bb2d7a3f\" type=\"text/css\" media=\"screen\" />   <link rel=\"stylesheet\" href=\"/owncloud/apps/calendar/css/../3rdparty/chosen/css/chosen.css?v=4bb5d820ecc90794f0a113d5bb2d7a3f\" type=\"text/css\" media=\"screen\" />                                 <link rel=\"stylesheet\" href=\"/owncloud/apps/calendar/css/../3rdparty/miniColors/css/jquery.miniColors.css?v=4bb5d820ecc90794f0a113d5bb2d7a3f\" type=\"text/css\" media=\"screen\" />                                      <link rel=\"stylesheet\" href=\"/owncloud/apps/files_texteditor/css/DroidSansMono/stylesheet.css?v=4bb5d820ecc90794f0a113d5bb2d7a3f\" type=\"text/css\" media=\"screen\" />                                  <link rel=\"stylesheet\" href=\"/owncloud/apps/files_texteditor/css/style.css?v=4bb5d820ecc90794f0a113d5bb2d7a3f\" type=\"te\r\nD/NoteListActivity(28787): updateDatabase() executed\r\n```\r\n\r\nIt appears that it tried to download the ownCloud front page and not the notes."},"comment":{"url":"https://api.github.com/repos/Fmstrat/ownnote/issues/comments/121231194","html_url":"https://github.com/Fmstrat/ownnote/issues/202#issuecomment-121231194","issue_url":"https://api.github.com/repos/Fmstrat/ownnote/issues/202","id":121231194,"user":{"login":"Fmstrat","id":971474,"avatar_url":"https://avatars.githubusercontent.com/u/971474?v=3","gravatar_id":"","url":"https://api.github.com/users/Fmstrat","html_url":"https://github.com/Fmstrat","followers_url":"https://api.github.com/users/Fmstrat/followers","following_url":"https://api.github.com/users/Fmstrat/following{/other_user}","gists_url":"https://api.github.com/users/Fmstrat/gists{/gist_id}","starred_url":"https://api.github.com/users/Fmstrat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fmstrat/subscriptions","organizations_url":"https://api.github.com/users/Fmstrat/orgs","repos_url":"https://api.github.com/users/Fmstrat/repos","events_url":"https://api.github.com/users/Fmstrat/events{/privacy}","received_events_url":"https://api.github.com/users/Fmstrat/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T12:56:52Z","updated_at":"2015-07-14T12:56:52Z","body":"What shows up in the owncloud.log?"}}