{"action":"created","issue":{"url":"https://api.github.com/repos/adamsb6/s3_file/issues/49","labels_url":"https://api.github.com/repos/adamsb6/s3_file/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/adamsb6/s3_file/issues/49/comments","events_url":"https://api.github.com/repos/adamsb6/s3_file/issues/49/events","html_url":"https://github.com/adamsb6/s3_file/issues/49","id":74493650,"number":49,"title":"s3_file fails to load instance profile when ENV['http_proxy'] is set.","user":{"login":"grosendorf","id":1864078,"avatar_url":"https://avatars.githubusercontent.com/u/1864078?v=3","gravatar_id":"","url":"https://api.github.com/users/grosendorf","html_url":"https://github.com/grosendorf","followers_url":"https://api.github.com/users/grosendorf/followers","following_url":"https://api.github.com/users/grosendorf/following{/other_user}","gists_url":"https://api.github.com/users/grosendorf/gists{/gist_id}","starred_url":"https://api.github.com/users/grosendorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grosendorf/subscriptions","organizations_url":"https://api.github.com/users/grosendorf/orgs","repos_url":"https://api.github.com/users/grosendorf/repos","events_url":"https://api.github.com/users/grosendorf/events{/privacy}","received_events_url":"https://api.github.com/users/grosendorf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-08T20:59:43Z","updated_at":"2015-07-08T18:27:57Z","closed_at":null,"body":"When http_proxy is set in a node's client.rb, the s3_file provider fails to load the instance profile. It instead loads the proxy's instance profile (if it exists), otherwise is raises the following ArgumentError\r\n`No credentials provided and no instance profile on this machine.`"},"comment":{"url":"https://api.github.com/repos/adamsb6/s3_file/issues/comments/119689645","html_url":"https://github.com/adamsb6/s3_file/issues/49#issuecomment-119689645","issue_url":"https://api.github.com/repos/adamsb6/s3_file/issues/49","id":119689645,"user":{"login":"vigith","id":191430,"avatar_url":"https://avatars.githubusercontent.com/u/191430?v=3","gravatar_id":"","url":"https://api.github.com/users/vigith","html_url":"https://github.com/vigith","followers_url":"https://api.github.com/users/vigith/followers","following_url":"https://api.github.com/users/vigith/following{/other_user}","gists_url":"https://api.github.com/users/vigith/gists{/gist_id}","starred_url":"https://api.github.com/users/vigith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vigith/subscriptions","organizations_url":"https://api.github.com/users/vigith/orgs","repos_url":"https://api.github.com/users/vigith/repos","events_url":"https://api.github.com/users/vigith/events{/privacy}","received_events_url":"https://api.github.com/users/vigith/received_events","type":"User","site_admin":false},"created_at":"2015-07-08T18:27:57Z","updated_at":"2015-07-08T18:27:57Z","body":"looks like it doesn't respond no_proxy\r\n\r\nI made the following change in `s3_file/libraries/s3_file.rb`\r\n\r\n```\r\n@@ -140,6 +140,8 @@\r\n   def self.client\r\n     require 'rest-client'\r\n     RestClient.proxy = ENV['http_proxy']\r\n+    RestClient.proxy = ENV['https_proxy']\r\n+    RestClient.proxy = ENV['no_proxy']\r\n     RestClient\r\n   end\r\n```"}}