Title: Cannot refresh public IP randomly · Issue #30 · lyft/python-blessclient · GitHub
Open Graph Title: Cannot refresh public IP randomly · Issue #30 · lyft/python-blessclient
X Title: Cannot refresh public IP randomly · Issue #30 · lyft/python-blessclient
Description: On occasion, on the first cold run: DEBUG:root:Cache get disabled DEBUG:root:Cache get disabled DEBUG:root:Getting current public IP DEBUG:root:Could not refresh public IP from http://api.ipify.org Traceback (most recent call last): File...
Open Graph Description: On occasion, on the first cold run: DEBUG:root:Cache get disabled DEBUG:root:Cache get disabled DEBUG:root:Getting current public IP DEBUG:root:Could not refresh public IP from http://api.ipify.org...
X Description: On occasion, on the first cold run: DEBUG:root:Cache get disabled DEBUG:root:Cache get disabled DEBUG:root:Getting current public IP DEBUG:root:Could not refresh public IP from http://api.ipify.org...
Opengraph URL: https://github.com/lyft/python-blessclient/issues/30
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot refresh public IP randomly","articleBody":"On occasion, on the first cold run:\r\n\r\n```\r\nDEBUG:root:Cache get disabled \r\nDEBUG:root:Cache get disabled \r\nDEBUG:root:Getting current public IP DEBUG:root:Could not refresh public IP from http://api.ipify.org Traceback (most recent call last): File \"/home/marc/.blessclient/blessclient/user_ip.py\", line 53, in _fetchIP \r\n with contextlib.closing(urlopen(url, timeout=2)) as f: File \"/home/marc/.pyenv/versions/2.7.12/lib/python2.7/urllib2.py\", line 154, in urlopen return opener.open(url, data, timeout) File \"/home/marc/.pyenv/versions/2.7.12/lib/python2.7/urllib2.py\", line 429, in open response = self._open(req, data) File \"/home/marc/.pyenv/versions/2.7.12/lib/python2.7/urllib2.py\", line 447, in _open \r\n '_open', req) File \"/home/marc/.pyenv/versions/2.7.12/lib/python2.7/urllib2.py\", line 407, in _call_chain result = func(*args) \r\n File \"/home/marc/.pyenv/versions/2.7.12/lib/python2.7/urllib2.py\", line 1228, in http_open return self.do_open(httplib.HTTPConnection, req) File \"/home/marc/.pyenv/versions/2.7.12/lib/python2.7/urllib2.py\", line 1201, in do_open r = h.getresponse(buffering=True) File \"/home/marc/.pyenv/versions/2.7.12/lib/python2.7/httplib.py\", line 1136, in getresponse response.begin() File \"/home/marc/.pyenv/versions/2.7.12/lib/python2.7/httplib.py\", line 453, in begin version, status, reason = self._read_status() File \"/home/marc/.pyenv/versions/2.7.12/lib/python2.7/httplib.py\", line 409, in _read_status \r\n line = self.fp.readline(_MAXLINE + 1) \r\n File \"/home/marc/.pyenv/versions/2.7.12/lib/python2.7/socket.py\", line 480, in readline data = self._sock.recv(self._rbufsize) timeout: timed out \r\nDEBUG:root:Could not refresh public IP from http://canihazip.com\r\nTraceback (most recent call last): \r\n File \"/home/marc/.blessclient/blessclient/user_ip.py\", line 53, in _fetchIP \r\n with contextlib.closing(urlopen(url, timeout=2)) as f: File \"/home/marc/.pyenv/versions/2.7.12/lib/python2.7/urllib2.py\", line 154, in urlopen return opener.open(url, data, timeout) File \"/home/marc/.pyenv/versions/2.7.12/lib/python2.7/urllib2.py\", line 429, in open \r\n response = self._open(req, data) File \"/home/marc/.pyenv/versions/2.7.12/lib/python2.7/urllib2.py\", line 447, in _open '_open', req) File \"/home/marc/.pyenv/versions/2.7.12/lib/python2.7/urllib2.py\", line 407, in _call_chain result = func(*args) File \"/home/marc/.pyenv/versions/2.7.12/lib/python2.7/urllib2.py\", line 1228, in http_open \r\n return self.do_open(httplib.HTTPConnection, req) File \"/home/marc/.pyenv/versions/2.7.12/lib/python2.7/urllib2.py\", line 1201, in do_open r = h.getresponse(buffering=True) \r\n File \"/home/marc/.pyenv/versions/2.7.12/lib/python2.7/httplib.py\", line 1136, in getresponse response.begin() File \"/home/marc/.pyenv/versions/2.7.12/lib/python2.7/httplib.py\", line 453, in begin version, status, reason = self._read_status() File \"/home/marc/.pyenv/versions/2.7.12/lib/python2.7/httplib.py\", line 409, in _read_status line = self.fp.readline(_MAXLINE + 1) \r\n File \"/home/marc/.pyenv/versions/2.7.12/lib/python2.7/socket.py\", line 480, in readline\r\n data = self._sock.recv(self._rbufsize)\r\ntimeout: timed out\r\nTraceback (most recent call last):\r\n File \"/home/marc/.blessclient/blessclient.run\", line 11, in \u003cmodule\u003e\r\n load_entry_point('blessclient', 'console_scripts', 'blessclient')()\r\n File \"/home/marc/.blessclient/blessclient/client.py\", line 643, in main\r\n bless(region, args.nocache, args.gui, args.host, bless_config)\r\n File \"/home/marc/.blessclient/blessclient/client.py\", line 547, in bless\r\n my_ip = userIP.getIP()\r\n File \"/home/marc/.blessclient/blessclient/user_ip.py\", line 29, in getIP\r\n self._refreshIP()\r\n File \"/home/marc/.blessclient/blessclient/user_ip.py\", line 43, in _refreshIP\r\n raise Exception('Could not refresh public IP')\r\nException: Could not refresh public IP\r\n```\r\n\r\nImmediately re-running this works.","author":{"url":"https://github.com/myoung34","@type":"Person","name":"myoung34"},"datePublished":"2018-01-26T15:12:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/30/python-blessclient/issues/30"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a928a270-2599-dd56-2e41-d0aef57d2ad1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9488:3930F2:2897099:33F6731:69749B74 |
| html-safe-nonce | 142b326dca1bfeaefe9eddae76215db9617f06d8fdb7f47c683db095a872957b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDg4OjM5MzBGMjoyODk3MDk5OjMzRjY3MzE6Njk3NDlCNzQiLCJ2aXNpdG9yX2lkIjoiMjgwNzYzODIyMDkwMDAxMjY4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ffb7c6b059c332b41786e97e0333bc989948da0140aae19dfe2957690d96c8dc |
| hovercard-subject-tag | issue:291930900 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/lyft/python-blessclient/30/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9379bf48e6c678f89bbec76e9c69f383f52a8253d904eed488b4752b3472319d/lyft/python-blessclient/issues/30 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9379bf48e6c678f89bbec76e9c69f383f52a8253d904eed488b4752b3472319d/lyft/python-blessclient/issues/30 |
| og:image:alt | On occasion, on the first cold run: DEBUG:root:Cache get disabled DEBUG:root:Cache get disabled DEBUG:root:Getting current public IP DEBUG:root:Could not refresh public IP from http://api.ipify.org... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | myoung34 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-preview |
| go-import | github.com/lyft/python-blessclient git https://github.com/lyft/python-blessclient.git |
| octolytics-dimension-user_id | 4269340 |
| octolytics-dimension-user_login | lyft |
| octolytics-dimension-repository_id | 80176210 |
| octolytics-dimension-repository_nwo | lyft/python-blessclient |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 80176210 |
| octolytics-dimension-repository_network_root_nwo | lyft/python-blessclient |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width