-
-
Notifications
You must be signed in to change notification settings - Fork 92
Open
Description
An exception is happening inside find_by_name
, but the gem's RequestError
exception class causes an error while wrapping the actual error.
My app code:
Cloudflare.connect(token: Rails.application.config.cloudflare_api_token) do |c|
c.zones.find_by_name("domain").purge_cache(files: urls)
end
The backtrace:
TypeError: no implicit conversion of Symbol into Integer if error = value[:error]
[GEM_ROOT]/gems/cloudflare-4.4.0/lib/cloudflare/representation.rb:16 :in `[]`
The gem code:
class RequestError < StandardError
def initialize(request, value)
if error = value[:error]
super("#{request}: #{error}")
elsif errors = value[:errors]
[...]
ioquatix
Metadata
Metadata
Assignees
Labels
No labels