{"action":"created","issue":{"url":"https://api.github.com/repos/rodrigocorsi2/mattermail/issues/8","repository_url":"https://api.github.com/repos/rodrigocorsi2/mattermail","labels_url":"https://api.github.com/repos/rodrigocorsi2/mattermail/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/rodrigocorsi2/mattermail/issues/8/comments","events_url":"https://api.github.com/repos/rodrigocorsi2/mattermail/issues/8/events","html_url":"https://github.com/rodrigocorsi2/mattermail/issues/8","id":154771750,"number":8,"title":"Error on check new email: AppErrorFromJson: model.utils.decode_json.app_error, invalid character '<' looking for beginning of value","user":{"login":"barc0001","id":19351421,"avatar_url":"https://avatars.githubusercontent.com/u/19351421?v=3","gravatar_id":"","url":"https://api.github.com/users/barc0001","html_url":"https://github.com/barc0001","followers_url":"https://api.github.com/users/barc0001/followers","following_url":"https://api.github.com/users/barc0001/following{/other_user}","gists_url":"https://api.github.com/users/barc0001/gists{/gist_id}","starred_url":"https://api.github.com/users/barc0001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barc0001/subscriptions","organizations_url":"https://api.github.com/users/barc0001/orgs","repos_url":"https://api.github.com/users/barc0001/repos","events_url":"https://api.github.com/users/barc0001/events{/privacy}","received_events_url":"https://api.github.com/users/barc0001/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2016-05-13T18:20:00Z","updated_at":"2016-05-24T13:19:32Z","closed_at":null,"body":"I'm getting this when Mattermail is connecting to a Dovecot IMAP server, and it doesn't retrieve the email.  Swotching on debug doesn't give any additional insight:\r\n\r\nIMAP ServerMail 10:17:46 S: * 7 EXISTS\r\nIMAP ServerMail 10:17:46 C: DONE\r\nIMAP ServerMail 10:17:46 S: * 1 RECENT\r\nIMAP ServerMail 10:17:46 S: BJDAY5 OK Idle completed.\r\nDEBG ServerMail 10:17:46 CheckNewMails\r\nDEBG ServerMail 10:17:46 CheckImapConnection: Connection alive\r\nIMAP ServerMail 10:17:46 C: BJDAY6 SELECT \"INBOX\"\r\nIMAP ServerMail 10:17:46 S: * OK [CLOSED] Previous mailbox closed.\r\nIMAP ServerMail 10:17:46 S: * FLAGS (\\Answered \\Flagged \\Deleted \\Seen \\Draft)\r\nIMAP ServerMail 10:17:46 S: * OK [PERMANENTFLAGS (\\Answered \\Flagged \\Deleted \\Seen \\Draft \\*)] Flags permitted.\r\nIMAP ServerMail 10:17:46 S: * 7 EXISTS\r\nIMAP ServerMail 10:17:46 S: * 0 RECENT\r\nIMAP ServerMail 10:17:46 S: * OK [UNSEEN 7] First unseen.\r\nIMAP ServerMail 10:17:46 S: * OK [UIDVALIDITY 1463095509] UIDs valid\r\nIMAP ServerMail 10:17:46 S: * OK [UIDNEXT 8] Predicted next UID\r\nIMAP ServerMail 10:17:46 S: * OK [HIGHESTMODSEQ 1] Highest\r\nIMAP ServerMail 10:17:46 S: BJDAY6 OK [READ-WRITE] Select completed.\r\nIMAP ServerMail 10:17:46 C: BJDAY7 UID SEARCH CHARSET UTF-8 UNSEEN\r\nIMAP ServerMail 10:17:46 S: * SEARCH 7\r\nIMAP ServerMail 10:17:46 S: BJDAY7 OK Search completed (0.000 secs).\r\nDEBG ServerMail 10:17:46 CheckNewMails:AddNum  7\r\nIMAP ServerMail 10:17:46 C: BJDAY8 UID FETCH 7 (BODY[])\r\nDEBG ServerMail 10:17:46 CheckNewMails: cmd in Progress\r\nIMAP ServerMail 10:17:46 S: * 7 FETCH (UID 7 FLAGS (\\Seen) BODY[] {7559}\r\nIMAP ServerMail 10:17:46 S: literal 7559 bytes\r\nIMAP ServerMail 10:17:46 S: )\r\nDEBG ServerMail 10:17:46 CheckNewMails:PostMail\r\nINFO ServerMail 10:17:46 Error on check new email: AppErrorFromJson: model.utils.decode_json.app_error, invalid character '<' looking for beginning of value\r\n"},"comment":{"url":"https://api.github.com/repos/rodrigocorsi2/mattermail/issues/comments/221265702","html_url":"https://github.com/rodrigocorsi2/mattermail/issues/8#issuecomment-221265702","issue_url":"https://api.github.com/repos/rodrigocorsi2/mattermail/issues/8","id":221265702,"user":{"login":"rodrigocorsi2","id":15876606,"avatar_url":"https://avatars.githubusercontent.com/u/15876606?v=3","gravatar_id":"","url":"https://api.github.com/users/rodrigocorsi2","html_url":"https://github.com/rodrigocorsi2","followers_url":"https://api.github.com/users/rodrigocorsi2/followers","following_url":"https://api.github.com/users/rodrigocorsi2/following{/other_user}","gists_url":"https://api.github.com/users/rodrigocorsi2/gists{/gist_id}","starred_url":"https://api.github.com/users/rodrigocorsi2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodrigocorsi2/subscriptions","organizations_url":"https://api.github.com/users/rodrigocorsi2/orgs","repos_url":"https://api.github.com/users/rodrigocorsi2/repos","events_url":"https://api.github.com/users/rodrigocorsi2/events{/privacy}","received_events_url":"https://api.github.com/users/rodrigocorsi2/received_events","type":"User","site_admin":false},"created_at":"2016-05-24T13:19:32Z","updated_at":"2016-05-24T13:19:32Z","body":"Hi @Romerus !\r\nI made many tests and I can't reproduce this error.\r\nI tested my own server (3.0.0) and the official Mattermost server (3.0.3)\r\n\r\nThis is my configuration:\r\n```\r\n[\r\n\t{\r\n\t\t\"Name\":          \"Gmail\",\r\n\r\n\t\t\"Server\":        \"https://pre-release.mattermost.com\",\r\n\t\t\"Team\":          \"core\",\r\n\t\t\"Channel\":       \"i18n-portuguese\",\r\n\t\t\"MattermostUser\":\"myemail@gmail.com\",\r\n\t\t\"MattermostPass\":\"myemailpassword\",\r\n\r\n\t\t\"ImapServer\":    \"imap.gmail.com:993\",\r\n\t\t\"Email\":         \"email4monitor@gmail.com\",\r\n\t\t\"EmailPass\":     \"xxxxxxx\",\r\n\r\n\t\t\"MailTemplate\":  \">:incoming_envelope: _De:_ **%v**\\n_%v_\\n\\n%v\",\r\n\t\t\"StartTLS\":      true,\r\n\t\t\"Disabled\":      false,\r\n\t\t\"Debug\":         true\r\n\t}\r\n]\r\n```\r\n\r\nYour problem occurs when Mattermail try to login into Mattermost, please check the field `Server` of your `config.json`, and check again your Mattermost version.\r\n\r\n"}}
{"actor":{"display_login":"rodrigocorsi2"}}