Open profforg opened 3 days ago
Hi @profforg can you provide some more detail about this issue? E.g. the specific steps which led to the error? Thanks!
The http proxy credentials are passed when the client instance is initialized (since the system proxy settings from ENV are ignored) and when I try to send SMS I get this error
example code:
client = Vonage::Client.new(
http: {
proxy_address: ENV.fetch('VONAGE_PROXY_ADDR', nil),
proxy_port: ENV.fetch('VONAGE_PROXY_PORT', nil) },
api_key: ENV.fetch('VONAGE_API_KEY', nil),
api_secret: ENV.fetch('VONAGE_API_SECRET', nil)
)
client.sms.send(from:, to: phone:, text:, type:, callback:)
@profforg I think I've identified the cause of the issue (actually, there are two separate, but related, underlying issues). I just need to investigate/test a bit more before pushing a fix. I'm aiming to release an update with a fix for this issue early next week.
After switching HTTP adapter from
Net::HTTP
toNet::HTTP::Persistent
proxy support is broken: