When using the new deactivation API, an exception occurs with HTTP Error 307. A workaround for now is to catch the exception and get the redirect URL using the exception_object.response.
Twilio::REST::RestError: [HTTP 307] 307 : Unable to fetch record
from /home/owaiswiz/.rvm/gems/ruby-2.6.6/gems/twilio-ruby-5.40.1/lib/twilio-ruby/framework/version.rb:72:in `fetch'
Issue Summary
When using the new deactivation API, an exception occurs with HTTP Error 307. A workaround for now is to catch the exception and get the redirect URL using the exception_object.response.
Similar to https://github.com/twilio/twilio-php/issues/655 and https://github.com/twilio/twilio-csharp/issues/534#issuecomment-676508898
Steps to Reproduce
Fetch deactivated numbers list from the official example
Code Snippet
Exception/Log
Technical details: