Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
61 views

Why do ruby http libraries result in unexpected character encodings? (curb, excon vs shell-out)

I'm getting response bodies from external request libraries (curb, excon) as ascii-8bit, where I'm expecting utf-8. My ruby environment is set up for utf-8 encoding by default: Encoding....
Andrew Schwartz's user avatar
0 votes
1 answer
61 views

GoogleCalendarAPI to insert events giving Rails--[API Error]: --{:error=>["Excon::Error::Forbidden", "Expected([200]) <=> Actual(403 Forbidden)\n"]}

I have been using Google calendar API to insert events in user's calendar. I have written a code which takes csv(with approx 1000 rows) as an input with minimum required parameters to create events ...
Prajjwal Gupta's user avatar
0 votes
1 answer
214 views

API Requests not being sent in Production w/Excon Rails 6.0.0

I'm having an issue where my POST request with Excon gem is not being sent out in production, but works perfectly in development. In my logs, it shows Processing ServiceFormsControlller#...
valcod3r's user avatar
  • 331
1 vote
2 answers
2k views

How can I trap errors correctly in a Sidekiq worker when testing with RSpec?

I have a relatively simple worker that uses Excon to grab something from the internet. I'm trying to be a good tester and use Webmock to force stubbing of the internet interactions, so that I'm ...
Erik Jacobs's user avatar
5 votes
1 answer
2k views

Faraday with net-http-persistent leaves connections open, resulting in "Errno::EMFILE: Too many open files"

We have a process (Rake task) that runs for a long period of time, making HTTPS requests to remote hosts using Faraday with the net_http_persistent adapter. After several hours to days of runtime, it ...
Robin Daugherty's user avatar
0 votes
1 answer
119 views

How can I force close excon connection when using chunked request

I am trying to read the first chunk of each image I am requesting to get its mime type and size which I'm able to do. However, when I use Connection#reset it doesn't kill the connection and keeps ...
ahmed's user avatar
  • 25
1 vote
1 answer
2k views

Rails + Heroku: Excon Expected([200, 201, 202, 204, 206, 304]) <=> Actual(422 Unprocessable Entity)

My Rails application, deployed in Heroku, uses some rake tasks I have defined and scheduled to be executed once a day. Very simple tasks that the only thing they do, is add some jobs to the ...
unmultimedio's user avatar
  • 1,244
3 votes
1 answer
1k views

Excon::Error::Socket: end of file reached (EOFError), neography gem

I have been using neography gem for my rails project and sometimes I end up getting the following error: <Excon::Error::Socket: end of file reached (EOFError)> #error inspect Could someone help ...
Bist S's user avatar
  • 41
0 votes
1 answer
264 views

Carrierwave upload to S3 fails, but curl works

I'm trying to upload images to S3 using Carrierwave (1.0.0 on Rails 4.2). I get 403 Access Denied. However, when I do a manual PUT request using curl, it works just fine. I have confirmed that Rails ...
henrebotha's user avatar
  • 1,298
3 votes
1 answer
3k views

Excon::Errors::Timeout: connect timeout reached

I am using sidekiq to send mails through Mandrill Apis. It was working all fine. But from past few days I am receiving timeout errors in sidekiq while job try to deliver mail randomly. Excon::...
user2606741's user avatar
2 votes
1 answer
930 views

Gitlab Backup and "Unable to to verify certificate"

In our Ubuntu server, an ex-partner has installed our Gitlab. I have no experience with gitlab. Now, I want to create a backup. After running sudo gitlab-rake gitlab:backup:create I get the ...
Tasos Anesiadis's user avatar
17 votes
2 answers
3k views

Why am I getting intermittent Excon::Error::Socket: getaddrinfo: No address associated with hostname (SocketError)?

Rails 4 - Ruby 2.2.2 - Amazon AWS S3 - dragonfly 1.0.12 - dragonfly-s3_data_store 1.2 - fog-aws 0.10.0 Around 99% of the time we have no issues. The issue usually only happens during times when ...
Peter Black's user avatar
  • 1,172
1 vote
0 answers
932 views

Learning Ruby on rails and getting excon SSL errors

I have tried researching this, and have no idea where to even look in my application to fix this error. I have been taking a course on Udemy and I am trying to use Google Cloud storage to upload ...
Kenny's user avatar
  • 74
2 votes
1 answer
2k views

Excon::Errors::SocketError in PostsController#create

I'm setting up a photo blog with Rails and am having difficulty with this error: Excon::Errors::SocketError in PostsController#create Connection reset by peer (Errno::ECONNRESET) Extracted source (...
TS11's user avatar
  • 75
9 votes
2 answers
422 views

Ruby Backup gem failing when uploading to S3. connection reset after 37 min

The backups are 250MB. I don't think that's very big, but it appears the problem is increasing with the size. Log from the Backup gem below. Note the time span; about 37 min into the uploading I ...
oma's user avatar
  • 41k

15 30 50 per page