Skip to content

Failed to open TCP connection to test.s3.amazonaws.com:443 (Too many open files - socket(2) - udp) #67

Open

Description

@dep

Hello. I am trying to fetch against an s3 URL on an M1 mac, and am running into an error.

Implementation:

response = Net::HTTP.get_response(URI(fetch_url))

if response.is_a?(Net::HTTPSuccess)
  JSON.parse(response.body)
else
  raise Error, "Failed to fetch manifest from #{fetch_url}"
end

Error

Failed to open TCP connection to test.s3.amazonaws.com:443 (Too many open files - socket(2) - udp)

This issue hasn't been reported by anyone else in my org, and seems to be machine specific. I can go to the URL i'm trying to fetch manually, and it is accessible. I tried this page to look at my ulimit stuff, but it's essentially the same settings as other folks who this code is working for.

Any help appreciated!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions