This is an unofficial chat room, if you want to reach out to the Faraday core team, join us on GitHub Discussions (https://github.com/lostisland/faraday/discussions) instead
Conversion error: Jekyll::Converters::Scss encountered an error while converting 'assets/css/main.scss':
File to import not found or unreadable: type-theme. Load paths: /faraday/docs/_sass /usr/local/bundle/gems/jekyll-theme-primer-0.5.2/_sass on line 2
jekyll server
ca_file
you can do so like thisconn = Faraday.new(…, ssl: { ca_file: ‘/path/to/the/ca.pem' })
ca_file
, that mostly dipends on the adapter. For Net:HTTP it seems like a File or a file path should work, but different adapter (and thus libraries) this might be different
Hey guys, I got a question about exceptions handling in Faraday. When I try to request an unavailable address like
Faraday.get('http://qweasdzxc.com')
I get a Faraday::ConnectionFailed
exception
Faraday::ConnectionFailed (Failed to open TCP connection to qweasdzxc.com:80 (getaddrinfo: Name or service not known))
But when I request localhost (or maybe any unavailable known hosts?) like in
Faraday.get('http://localhost:9876')
I get a SystemCallError
exception:
Errno::EADDRNOTAVAIL (Failed to open TCP connection to localhost:9876 (Cannot assign requested address - connect(2) for "localhost" port 9876))
Should Faraday also wrap this exception?
Thanks for this great library! :)
response = Faraday.new(
:url => settings['api_url'],
ssl: {
verify: false
}).get("patients", params)
One thing I discovered is that upgrading didn't fix the issue unless I also wiped (the presumably broken) http-cache directory it had been using with 0.16.x.
@alexjfisher I’ve already replied to you on GitHub, but for the sake of clarity a note have been added to the v0.17.0 release to highlight this :thumbsup:
Faraday::ConnectionFailed
exception being raised. Could you provide some additional information about your OS and if there’s something listening to that port?
client_error = true
exactly?