{"action":"created","issue":{"url":"https://api.github.com/repos/savonrb/httpi/issues/156","labels_url":"https://api.github.com/repos/savonrb/httpi/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/savonrb/httpi/issues/156/comments","events_url":"https://api.github.com/repos/savonrb/httpi/issues/156/events","html_url":"https://github.com/savonrb/httpi/issues/156","id":97885323,"number":156,"title":"Installing Twitter Gem breaks Savon due to HTTPI LOAD_ORDER preferring http over net_http","user":{"login":"lustremedia","id":1240374,"avatar_url":"https://avatars.githubusercontent.com/u/1240374?v=3","gravatar_id":"","url":"https://api.github.com/users/lustremedia","html_url":"https://github.com/lustremedia","followers_url":"https://api.github.com/users/lustremedia/followers","following_url":"https://api.github.com/users/lustremedia/following{/other_user}","gists_url":"https://api.github.com/users/lustremedia/gists{/gist_id}","starred_url":"https://api.github.com/users/lustremedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lustremedia/subscriptions","organizations_url":"https://api.github.com/users/lustremedia/orgs","repos_url":"https://api.github.com/users/lustremedia/repos","events_url":"https://api.github.com/users/lustremedia/events{/privacy}","received_events_url":"https://api.github.com/users/lustremedia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-07-29T08:27:49Z","updated_at":"2015-07-29T11:45:00Z","closed_at":null,"body":"Using savon (2.11.1)\r\nUsing httpi (2.4.1)\r\nUsing twitter (5.14.0)\r\nUsing http (0.6.4)\r\n\r\nI just installed the ```twitter``` Gem (https://github.com/sferik/twitter) which has ```http``` Gem as dependency while using the ```savon``` Gem . \r\n\r\nHTTPI then preferred ```http``` over the working ```net_http``` (this seems to be the default in Rails) in the LOAD_ORDER which then breaks Savon's requests with following error:\r\n```NoMethodError (undefined method `headers' for #<HTTP::Client:0xbd8ab91c>):```\r\n\r\nAfter installing ```httpclient``` everything worked fine again due to the LoadOrder\r\nhttps://github.com/savonrb/httpi/blob/master/lib/httpi/adapter.rb#L16\r\n\r\nThis seems to be related to https://github.com/savonrb/savon/issues/488\r\n\r\nThe error messages are not very clear and the stacktrace for debugging was really non-existing but pointing to the Savon API calls. I think this ought to be remedied in some way."},"comment":{"url":"https://api.github.com/repos/savonrb/httpi/issues/comments/125928083","html_url":"https://github.com/savonrb/httpi/issues/156#issuecomment-125928083","issue_url":"https://api.github.com/repos/savonrb/httpi/issues/156","id":125928083,"user":{"login":"lustremedia","id":1240374,"avatar_url":"https://avatars.githubusercontent.com/u/1240374?v=3","gravatar_id":"","url":"https://api.github.com/users/lustremedia","html_url":"https://github.com/lustremedia","followers_url":"https://api.github.com/users/lustremedia/followers","following_url":"https://api.github.com/users/lustremedia/following{/other_user}","gists_url":"https://api.github.com/users/lustremedia/gists{/gist_id}","starred_url":"https://api.github.com/users/lustremedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lustremedia/subscriptions","organizations_url":"https://api.github.com/users/lustremedia/orgs","repos_url":"https://api.github.com/users/lustremedia/repos","events_url":"https://api.github.com/users/lustremedia/events{/privacy}","received_events_url":"https://api.github.com/users/lustremedia/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T11:45:00Z","updated_at":"2015-07-29T11:45:00Z","body":"@rogerleite also you could have the option to reject support for less active adapters and have less troubles."}}