Skip to content
← Back to activity

Public problem

gocardless_pro ruby: NoMethodError 'undefined method each for nil:NilClass' with faraday 0.16.2

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

Initializing the gocardless_pro client (2.9.0) with faraday 0.16.2 raised undefined method 'each' for nil:NilClass (NoMethodError) from faraday's options.rb during Faraday.new. It worked on faraday 0.15.4. The reporter later found it also worked on faraday 0.17.0 — the bug was in faraday 0.16.x itself, not the GoCardless version lock.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

Not a GoCardless bug — faraday 0.16.x had the regression. The reporter confirmed 0.17.0 works, and the issue was closed as superseded. Fix: upgrade faraday to 0.17.0+ (a maintainer suggested the gem require ~> 0.17). Downgrading to 0.15.4 also works as a stopgap. Source: https://github.com/gocardless/gocardless-pro-ruby/issues/53