Closed
Description
Description
When using the method next
from Mailgun::Suppressions
a Mailgun::CommunicationError
error occurs.
Steps to Reproduce
suppressions = Mailgun::Suppressions.new(Mailgun::Client.new, my_mailgun_domain)
suppressions.list_bounces(limit: 100)
suppressions.next
The error log:
(irb):21:in '<main>': the server responded with status 405 (Mailgun::CommunicationError)
/app/vendor/bundle/ruby/3.4.0/gems/faraday-2.13.0/lib/faraday/response/raise_error.rb:36:in 'Faraday::Response::RaiseError#on_complete': the server responded with status 405 (Faraday::ClientError)
from /app/vendor/bundle/ruby/3.4.0/gems/faraday-2.13.0/lib/faraday/middleware.rb:57:in 'block in Faraday::Middleware#call'
from /app/vendor/bundle/ruby/3.4.0/gems/faraday-2.13.0/lib/faraday/response.rb:42:in 'Faraday::Response#on_complete'
from /app/vendor/bundle/ruby/3.4.0/gems/faraday-2.13.0/lib/faraday/middleware.rb:56:in 'Faraday::Middleware#call'
from /app/vendor/bundle/ruby/3.4.0/gems/faraday-2.13.0/lib/faraday/request/url_encoded.rb:25:in 'Faraday::Request::UrlEncoded#call'
from /app/vendor/bundle/ruby/3.4.0/gems/faraday-2.13.0/lib/faraday/middleware.rb:56:in 'Faraday::Middleware#call'
from /app/vendor/bundle/ruby/3.4.0/gems/faraday-multipart-1.1.0/lib/faraday/multipart/middleware.rb:27:in 'Faraday::Multipart::Middleware#call'
from /app/vendor/bundle/ruby/3.4.0/gems/faraday-2.13.0/lib/faraday/rack_builder.rb:153:in 'Faraday::RackBuilder#build_response'
from /app/vendor/bundle/ruby/3.4.0/gems/faraday-2.13.0/lib/faraday/connection.rb:452:in 'Faraday::Connection#run_request'
from /app/vendor/bundle/ruby/3.4.0/gems/faraday-2.13.0/lib/faraday/connection.rb:200:in 'Faraday::Connection#get'
from /app/vendor/bundle/ruby/3.4.0/gems/mailgun-ruby-1.3.5/lib/mailgun/client.rb:161:in 'Mailgun::Client#get'
from (irb):21:in '<main>'
from /app/vendor/bundle/ruby/3.4.0/gems/irb-1.15.2/lib/irb/workspace.rb:101:in 'Kernel#eval'
from /app/vendor/bundle/ruby/3.4.0/gems/irb-1.15.2/lib/irb/workspace.rb:101:in 'IRB::WorkSpace#evaluate'
from /app/vendor/bundle/ruby/3.4.0/gems/irb-1.15.2/lib/irb/context.rb:591:in 'IRB::Context#evaluate_expression'
from /app/vendor/bundle/ruby/3.4.0/gems/irb-1.15.2/lib/irb/context.rb:557:in 'IRB::Context#evaluate'
from /app/vendor/bundle/ruby/3.4.0/gems/irb-1.15.2/lib/irb.rb:201:in 'block (2 levels) in IRB::Irb#eval_input'
... 26 levels...
This change in suppressions.rb
works for me:
+ :path => page_next.path[/\/v[\d]\/(.+)/, 1],
- :path => page_next.path[/\/v[\d](.+)/, 1],
Metadata
Metadata
Assignees
Labels
No labels