Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dep opened this issue Aug 31, 2022 · 0 comments

Comments

@dep
Copy link

dep commented Aug 31, 2022

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!

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

No branches or pull requests

1 participant