lineofflight / peddler

Amazon Selling Partner API (SP-API) in Ruby
MIT License
307 stars 130 forks source link

Possible conflict with Savon #105

Closed PabloMD closed 6 years ago

PabloMD commented 6 years ago

Probably there is some conflict with Savon, because if I include peddler in Gemfile I start receiving Procedure 'X' not present for my other code that uses Savon client ( https://github.com/savonrb/savon/issues/856). Or I should it use not as gem?

Edit:

Ok, I have to resolve the issue to progress with my app :-) So the problem is with HTTPI::Adapter::default_adapter. If I do not include the peddler then the default_addaper is net_http but if peddler is included the default_adapter is set to excon which not work with my other code. So I just force the net_http adapter for my other module.

Actually, debugging it further shows that the default_adapter has list of adapters(LOAD_ORDER) and it trying to load one by one until any loaded. The peddler requires the excon so it returns it as is defined before net_http. To concludes it is not Peddler issue