Top "Faraday" questions

Simple, but flexible HTTP client library, with support for multiple backends.

OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed

I have Rails API server hosted on Heroku, which makes an asynchronous POST request to a callback url specified in …

ruby-on-rails ssl faraday
What is "timeout" and "open timeout" in Faraday?

Since Faraday doesn't have documentation, I wasn't able to find it out anywhere. What is "timeout" and what "open timeout" …

ruby timeout faraday
Upload files using Faraday

I'm having issues attempting to upload a file to a web service using Faraday. My code: conn = Faraday.new('http://…

ruby faraday
Looking for Example of Faraday Middleware with Error checking

I am looking for an example of Faraday Middleware that handles http (status code) errors on requests and additionally network …

ruby-on-rails ruby middleware faraday
Stubbing with Faraday and Rspec

I have a model that looks like this: class Gist def self.create(options) post_response = Faraday.post do |request| …

rspec mocking stubbing faraday
faraday timeout on a simple get

Is there a way to add timeout options in this simple get method? I am using Faraday 3.3. Faraday.get(url) …

ruby-on-rails ruby faraday
How to set log level in faraday

I recently switched my http client to faraday and everything works as intended. I have the following piece of code …

ruby-on-rails ruby faraday
RuntimeError: :json is not registered on Faraday::Request

I am fairly new to ruby and I am trying to execute a spec and I receive this error: RuntimeError: :…

ruby rspec faraday
Faraday Authorization Header

I am trying to make a request to the Spingo API. I have made a successful request using Curl, but …

ruby-on-rails ruby curl faraday
#<Faraday::ConnectionFailed> Connection refused - connect(2)

I am receiving the message #<Faraday::ConnectionFailed> Connection refused - connect(2) after using checkboxes to select items in …

ruby-on-rails ruby faraday faraday-oauth