Failed to open TCP connection to test.s3.amazonaws.com:443 (Too many open files - socket(2) - udp)
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- aws, ruby
- Domain
- networking
Research direction
The report names no repository file or test; begin with the Net::HTTP.get_response(URI(fetch_url)) call and reproduce the socket(2) error on the stated M1 Mac. Compare the failing environment with machines where the request works, and consider the issue complete when the machine-specific cause and a reproducible fix or clear project guidance are established.
Written by the indexing model from the issue text.
Description
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!
- Dominant language
- Ruby
- Stars
- 148
- Forks
- 95
- Avg merge
- 10h 54m
- Merged PRs (30d)
- 4
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ruby/net-http
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
-
Difficulty 5/5 Over a week Newbie friendliness 38/100
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
Similar issues
-
SyncEm always forwards a dummy block, so wrapped methods lose their no-block/Enumerator behavior Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
endoflife-date/endoflife.date#11086 ·
-
internal
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Kong/developer.konghq.com#7322 ·
-
bug P2
Difficulty 2/5 1-3 hours Newbie friendliness 88/100