Sometimes this happens when using the logger with the curl formatter.
undefined method `each' for #<String:0x00007fe4146de750>
/path../httparty-0.18.1/lib/httparty/logger/curl_formatter.rb:79:in `log_hash'
/path../httparty-0.18.1/lib/httparty/logger/curl_formatter.rb:68:in `log_query'
/path../httparty-0.18.1/lib/httparty/logger/curl_formatter.rb:34:in `log_request'
/path../httparty-0.18.1/lib/httparty/logger/curl_formatter.rb:20:in `format'
/path../httparty-0.18.1/lib/httparty/response.rb:28:in `initialize'
/path../httparty-0.18.1/lib/httparty/request.rb:295:in `new'
The issue is in this method:
def log_hash(hash)
hash.each { |k, v| log(OUT, "#{k}: #{v}") }
end