{"action":"created","issue":{"url":"https://api.github.com/repos/jstedfast/MailKit/issues/377","repository_url":"https://api.github.com/repos/jstedfast/MailKit","labels_url":"https://api.github.com/repos/jstedfast/MailKit/issues/377/labels{/name}","comments_url":"https://api.github.com/repos/jstedfast/MailKit/issues/377/comments","events_url":"https://api.github.com/repos/jstedfast/MailKit/issues/377/events","html_url":"https://github.com/jstedfast/MailKit/issues/377","id":168222229,"number":377,"title":"NO [ALERT] Too many simultaneous connections. (Failure) ","user":{"login":"mbalsam","id":2023690,"avatar_url":"https://avatars.githubusercontent.com/u/2023690?v=3","gravatar_id":"","url":"https://api.github.com/users/mbalsam","html_url":"https://github.com/mbalsam","followers_url":"https://api.github.com/users/mbalsam/followers","following_url":"https://api.github.com/users/mbalsam/following{/other_user}","gists_url":"https://api.github.com/users/mbalsam/gists{/gist_id}","starred_url":"https://api.github.com/users/mbalsam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbalsam/subscriptions","organizations_url":"https://api.github.com/users/mbalsam/orgs","repos_url":"https://api.github.com/users/mbalsam/repos","events_url":"https://api.github.com/users/mbalsam/events{/privacy}","received_events_url":"https://api.github.com/users/mbalsam/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jstedfast/MailKit/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-28T23:49:08Z","updated_at":"2016-07-29T00:43:27Z","closed_at":"2016-07-29T00:41:36Z","body":"When using gmail we have found that we are hitting the maximum amount of connections for gmail which is 15.\r\n\r\nhttps://support.google.com/mail/answer/97150?hl=en\r\n\r\nIf this happens during an  client.Authenticate call, Mailkit returns the same Exception as if there was an Authentication failure.  There is no way to determine the difference unless you log all of the IMAP activity and then we see this.\r\n\r\nC: R00000001 AUTHENTICATE XOAUTH2 dXNlcj1tYmFsc2FtQGdtYWlsLmNvbQFhdXRoPUJlYXJlciB5YTI5LkNpOHVBN3Vpb21TYllxZFl1TEFkUjl5NG9ObGJYSlFqRVphVWtFYXNKNjZKN3N3VWpReENib2x6cTh5RkU4NDAyQQEB\r\nS: + eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ==\r\nC: \r\n\r\nS: R00000001 NO [ALERT] Too many simultaneous connections. (Failure)\r\n\r\n\r\nC: R00000002 AUTHENTICATE PLAIN AG1iYWxzYW1AZ21haWwuY29tAHlhMjkuQ2k4dUE3dWlvbVNiWXFkWXVMQWRSOXk0b05sYlhKUWpFWmFVa0Vhc0o2Nko3c3dValF4Q2JvbHpxOHlGRTg0MDJB\r\nS: R00000002 NO [AUTHENTICATIONFAILED] Invalid credentials (Failure)\r\nC: R00000003 LOGIN mbalsam@gmail.com ya29.Ci8uA7uiomSbYqdYuLAdR9y4oNlbXJQjEZaUkEasJ66J7swUjQxCbolzq8yFE8402A\r\nS: R00000003 NO [AUTHENTICATIONFAILED] Invalid credentials (Failure)\r\n\r\n\r\n\r\nWe looked in the exception and all its says is \"Invalid credentials\".\r\n\r\nNot sure whats the best way to differentiate this?\r\n\r\nAn inner exception, showing too many connections? \r\n\r\nAny help would be appreciated!!!\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jstedfast/MailKit/issues/comments/236065822","html_url":"https://github.com/jstedfast/MailKit/issues/377#issuecomment-236065822","issue_url":"https://api.github.com/repos/jstedfast/MailKit/issues/377","id":236065822,"user":{"login":"mbalsam","id":2023690,"avatar_url":"https://avatars.githubusercontent.com/u/2023690?v=3","gravatar_id":"","url":"https://api.github.com/users/mbalsam","html_url":"https://github.com/mbalsam","followers_url":"https://api.github.com/users/mbalsam/followers","following_url":"https://api.github.com/users/mbalsam/following{/other_user}","gists_url":"https://api.github.com/users/mbalsam/gists{/gist_id}","starred_url":"https://api.github.com/users/mbalsam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbalsam/subscriptions","organizations_url":"https://api.github.com/users/mbalsam/orgs","repos_url":"https://api.github.com/users/mbalsam/repos","events_url":"https://api.github.com/users/mbalsam/events{/privacy}","received_events_url":"https://api.github.com/users/mbalsam/received_events","type":"User","site_admin":false},"created_at":"2016-07-29T00:43:27Z","updated_at":"2016-07-29T00:43:27Z","body":"Thanks!\n_____________________________\nFrom: Jeffrey Stedfast <notifications@github.com<mailto:notifications@github.com>>\nSent: Thursday, July 28, 2016 8:41 PM\nSubject: Re: [jstedfast/MailKit] NO [ALERT] Too many simultaneous connections. (Failure) (#377)\nTo: jstedfast/MailKit <mailkit@noreply.github.com<mailto:mailkit@noreply.github.com>>\nCc: Mitchell Balsam <mitch@commondesk.com<mailto:mitch@commondesk.com>>, Author <author@noreply.github.com<mailto:author@noreply.github.com>>\n\n\n\nThere's 2 ways to get this:\n\n  1.  subscribe to the Alert event\n  2.  the AuthenticationException now uses the [ALERT] message\n\n-\nYou are receiving this because you authored the thread.\nReply to this email directly, view it on GitHub<https://github.com/jstedfast/MailKit/issues/377#issuecomment-236065551>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AB7hCtDYcRrYtqFa-0KaIJ5rpUQmHZ8Xks5qaUxEgaJpZM4JXwId>.\n\n\n"}}
{"actor":{"display_login":"mbalsam"}}