{"action":"created","issue":{"url":"https://api.github.com/repos/cablehead/python-consul/issues/208","repository_url":"https://api.github.com/repos/cablehead/python-consul","labels_url":"https://api.github.com/repos/cablehead/python-consul/issues/208/labels{/name}","comments_url":"https://api.github.com/repos/cablehead/python-consul/issues/208/comments","events_url":"https://api.github.com/repos/cablehead/python-consul/issues/208/events","html_url":"https://github.com/cablehead/python-consul/issues/208","id":318610205,"node_id":"MDU6SXNzdWUzMTg2MTAyMDU=","number":208,"title":"Can't use behind proxy","user":{"login":"zeratulayuris","id":9881249,"node_id":"MDQ6VXNlcjk4ODEyNDk=","avatar_url":"https://avatars2.githubusercontent.com/u/9881249?v=4","gravatar_id":"","url":"https://api.github.com/users/zeratulayuris","html_url":"https://github.com/zeratulayuris","followers_url":"https://api.github.com/users/zeratulayuris/followers","following_url":"https://api.github.com/users/zeratulayuris/following{/other_user}","gists_url":"https://api.github.com/users/zeratulayuris/gists{/gist_id}","starred_url":"https://api.github.com/users/zeratulayuris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeratulayuris/subscriptions","organizations_url":"https://api.github.com/users/zeratulayuris/orgs","repos_url":"https://api.github.com/users/zeratulayuris/repos","events_url":"https://api.github.com/users/zeratulayuris/events{/privacy}","received_events_url":"https://api.github.com/users/zeratulayuris/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-28T07:36:15Z","updated_at":"2018-07-05T22:36:14Z","closed_at":null,"author_association":"NONE","body":"I'm behind proxy and have proxy settings exported - my app needs it to work, as it's making request to outside services. But this makes requests, which is used by python-consul too, to grab this settings and send requests to 127.0.0.1 via proxy. Clearly it fails.\r\nQuestion is: how can I force python-consul to make requests to not use proxy?"},"comment":{"url":"https://api.github.com/repos/cablehead/python-consul/issues/comments/402872395","html_url":"https://github.com/cablehead/python-consul/issues/208#issuecomment-402872395","issue_url":"https://api.github.com/repos/cablehead/python-consul/issues/208","id":402872395,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjg3MjM5NQ==","user":{"login":"asteven","id":684915,"node_id":"MDQ6VXNlcjY4NDkxNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/684915?v=4","gravatar_id":"","url":"https://api.github.com/users/asteven","html_url":"https://github.com/asteven","followers_url":"https://api.github.com/users/asteven/followers","following_url":"https://api.github.com/users/asteven/following{/other_user}","gists_url":"https://api.github.com/users/asteven/gists{/gist_id}","starred_url":"https://api.github.com/users/asteven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asteven/subscriptions","organizations_url":"https://api.github.com/users/asteven/orgs","repos_url":"https://api.github.com/users/asteven/repos","events_url":"https://api.github.com/users/asteven/events{/privacy}","received_events_url":"https://api.github.com/users/asteven/received_events","type":"User","site_admin":false},"created_at":"2018-07-05T22:36:14Z","updated_at":"2018-07-05T22:36:14Z","author_association":"NONE","body":"Depending on the client you are using you can set the NO_PROXY environment variable.\r\n\r\nI have the following set on most of my hosts\r\n```\r\nexport no_proxy=localhost,127.0.0.1,.service.consul\r\n```\r\nThis works fine with curl and friends, have not yet tested with python-consul or requests in general.\r\nBut it seems this should work at least with the requests based (std.py) implementation. See e.g. https://stackoverflow.com/questions/28521535/requests-how-to-disable-bypass-proxy\r\n"}}
{"actor":{"display_login":"asteven"}}