{"action":"created","issue":{"url":"https://api.github.com/repos/sameer-b/AutoHathwayLogin/issues/5","labels_url":"https://api.github.com/repos/sameer-b/AutoHathwayLogin/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/sameer-b/AutoHathwayLogin/issues/5/comments","events_url":"https://api.github.com/repos/sameer-b/AutoHathwayLogin/issues/5/events","html_url":"https://github.com/sameer-b/AutoHathwayLogin/issues/5","id":44868593,"number":5,"title":"Issue with connectivity detection","user":{"login":"miheerdew","id":3489337,"avatar_url":"https://avatars.githubusercontent.com/u/3489337?v=3","gravatar_id":"","url":"https://api.github.com/users/miheerdew","html_url":"https://github.com/miheerdew","followers_url":"https://api.github.com/users/miheerdew/followers","following_url":"https://api.github.com/users/miheerdew/following{/other_user}","gists_url":"https://api.github.com/users/miheerdew/gists{/gist_id}","starred_url":"https://api.github.com/users/miheerdew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miheerdew/subscriptions","organizations_url":"https://api.github.com/users/miheerdew/orgs","repos_url":"https://api.github.com/users/miheerdew/repos","events_url":"https://api.github.com/users/miheerdew/events{/privacy}","received_events_url":"https://api.github.com/users/miheerdew/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2014-10-04T02:52:38Z","updated_at":"2015-04-01T15:11:13Z","closed_at":"2014-10-07T15:53:00Z","body":"I was unable to connect to the internet ( www.google.com would redirect me to the hathway site), however the script showed `Internet connectivity alive` message. Is it because redirection does not raise an exception?"},"comment":{"url":"https://api.github.com/repos/sameer-b/AutoHathwayLogin/issues/comments/88519050","html_url":"https://github.com/sameer-b/AutoHathwayLogin/issues/5#issuecomment-88519050","issue_url":"https://api.github.com/repos/sameer-b/AutoHathwayLogin/issues/5","id":88519050,"user":{"login":"rickysarraf","id":65480,"avatar_url":"https://avatars.githubusercontent.com/u/65480?v=3","gravatar_id":"","url":"https://api.github.com/users/rickysarraf","html_url":"https://github.com/rickysarraf","followers_url":"https://api.github.com/users/rickysarraf/followers","following_url":"https://api.github.com/users/rickysarraf/following{/other_user}","gists_url":"https://api.github.com/users/rickysarraf/gists{/gist_id}","starred_url":"https://api.github.com/users/rickysarraf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickysarraf/subscriptions","organizations_url":"https://api.github.com/users/rickysarraf/orgs","repos_url":"https://api.github.com/users/rickysarraf/repos","events_url":"https://api.github.com/users/rickysarraf/events{/privacy}","received_events_url":"https://api.github.com/users/rickysarraf/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T15:11:13Z","updated_at":"2015-04-01T15:11:13Z","body":"On Wednesday 01 April 2015 06:41 PM, raghukamath wrote:\n>\n> I ran the script and it didn't log me in. All the pages where\n> redirected . But the log file showed the Internet connectivity alive\n> message. I even tried purposely loging out of hathway but the terminal\n> output as well as the log file showed same message.\n>\n> Please tell me which hathway plan do you have and how it works. Thanks\n> in advance for your help\n>\n\nCan you be specific here?\n\nRedirection in the web browser or redirection for the python url ?\n\n\nLooking at the code:\n\n                        try:\n                                local_write(\"%s\\tTrying to authenticate\nto server %s\\n\" % (time.ctime(), real_host) )\n                                urllib2.urlopen(real_host)\n                        except:\n                                local_write(\"%s\\tFailed to connect to %s\nRetrying\\n\" % (time.ctime(), real_host) )\n                                continue\n\nWhile I'm not happy that we chose a catchall exception, but if you are\ngetting a false positive, the error must be somewhere else.\n\nAssuming what you said is correct, and we are getting a redirection,  we\ndefinitely would have gotten an exception, which would have been caught\nand an error msg logged.\n\n    urlopen(url, data=None) -- Basic usage is the same as original\n    urllib.  pass the url and optionally data to post to an HTTP URL, and\n    get a file-like object back.  One difference is that you can also pass\n    a Request instance instead of URL.  Raises a URLError (subclass of\n    IOError); for HTTP errors, raises an HTTPError, which can also be\n    treated as a valid response.\n\n\n-- \nRitesh Raj Sarraf\nRESEARCHUT - http://www.researchut.com\n\"Necessity is the mother of invention.\"\n\n\n\n"}}