socketry / cloudflare

An asynchronous Ruby wrapper for the CloudFlare V4 API.
MIT License
139 stars 88 forks source link

zone.record seems to be nil #41

Closed dwery closed 5 years ago

dwery commented 5 years ago

this happens when calling .all

cloudflare-3.2.2/lib/cloudflare/zone.rb:192:in to_s': undefined method[]' for nil:NilClass (NoMethodError)

works if preload = true

ioquatix commented 5 years ago

Can you submit a PR to fix this issue?

ioquatix commented 5 years ago

I'm refactoring the code, this issue should be mitigated due to the change In underlying code.