net-http
net-http copied to clipboard
Failed to open TCP connection to test.s3.amazonaws.com:443 (Too many open files - socket(2) - udp)
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!