{"action":"created","issue":{"url":"https://api.github.com/repos/nickoala/telepot/issues/176","repository_url":"https://api.github.com/repos/nickoala/telepot","labels_url":"https://api.github.com/repos/nickoala/telepot/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/nickoala/telepot/issues/176/comments","events_url":"https://api.github.com/repos/nickoala/telepot/issues/176/events","html_url":"https://github.com/nickoala/telepot/issues/176","id":188925259,"number":176,"title":"sendPhoto never returns in some circumstances ","user":{"login":"ste82","id":23421707,"avatar_url":"https://avatars2.githubusercontent.com/u/23421707?v=4","gravatar_id":"","url":"https://api.github.com/users/ste82","html_url":"https://github.com/ste82","followers_url":"https://api.github.com/users/ste82/followers","following_url":"https://api.github.com/users/ste82/following{/other_user}","gists_url":"https://api.github.com/users/ste82/gists{/gist_id}","starred_url":"https://api.github.com/users/ste82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ste82/subscriptions","organizations_url":"https://api.github.com/users/ste82/orgs","repos_url":"https://api.github.com/users/ste82/repos","events_url":"https://api.github.com/users/ste82/events{/privacy}","received_events_url":"https://api.github.com/users/ste82/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-12T18:00:35Z","updated_at":"2017-10-20T15:38:53Z","closed_at":null,"author_association":"NONE","body":"System: Raspberry 3 Model B with Raspbian\r\nIn my python script I send a photo with:\r\n`bot.sendPhoto(chatid,(\"webcam.jpg\", cameraImage), message)`\r\n\r\nNormally it works, and if there isn't internet connection it retries to connect for 4 times , and after (about 2 minutes) it launches an exception. Perfect.\r\nBut during the retry attempts of sending, if the connection comes back, it locks up and the function sendPhoto() never returns (I wait for about 10 minutes...).\r\n\r\nWhen it start to sending image without internet connection:\r\n`Converted retries value: 3 -> Retry(total=3, connect=None, read=None, redirect=0)`\r\n......connection fails, retrying...\r\n-> internet connection comes back\r\n`Starting new HTTPS connection (2): api.telegram.org`\r\n--> No more logs, the script is blocked\r\n\r\nI tried to recreate this scenario many times and it happens frequently (not always)."},"comment":{"url":"https://api.github.com/repos/nickoala/telepot/issues/comments/338242799","html_url":"https://github.com/nickoala/telepot/issues/176#issuecomment-338242799","issue_url":"https://api.github.com/repos/nickoala/telepot/issues/176","id":338242799,"user":{"login":"ritiek","id":20314742,"avatar_url":"https://avatars1.githubusercontent.com/u/20314742?v=4","gravatar_id":"","url":"https://api.github.com/users/ritiek","html_url":"https://github.com/ritiek","followers_url":"https://api.github.com/users/ritiek/followers","following_url":"https://api.github.com/users/ritiek/following{/other_user}","gists_url":"https://api.github.com/users/ritiek/gists{/gist_id}","starred_url":"https://api.github.com/users/ritiek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ritiek/subscriptions","organizations_url":"https://api.github.com/users/ritiek/orgs","repos_url":"https://api.github.com/users/ritiek/repos","events_url":"https://api.github.com/users/ritiek/events{/privacy}","received_events_url":"https://api.github.com/users/ritiek/received_events","type":"User","site_admin":false},"created_at":"2017-10-20T15:38:53Z","updated_at":"2017-10-20T15:38:53Z","author_association":"NONE","body":"I believe one needs to generate network timeouts to replicate this problem which are quite uncommon."}}
{"actor":{"display_login":"ritiek"}}