2 Answers
- Newest
- Most votes
- Most comments
0
This has to do with the underlying OS configuration. The error message comes from the OS, and is only passed to Node.js. Perhaps the file descriptor limit is reached, by some other tenant?
answered a month ago
-1
This is more of a Node.js issue than an AWS-specific issue.
If you look at your error message, you'll see node:dns
. This means it's probably a DNS issue. Node is having trouble resolving the domain name. I've seen these errors before, and they can frequently be resolved by adjusting how to call the function. I suggest trying to call in the string format where you have built the URL:
const req = https.request('https://myUrl.co.il/login', function(res) { // ... });
If you need to provide additional options, you can insert the options object between the URL and function.
answered a year ago
Relevant content
- Accepted Answerasked 10 months ago
- asked 6 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
@Jason Butz Thanks! I tried that but it didnt solved the issue. Also , maybe node having trouble resolving domain name but it hard to me to understand why it can solve it in my local development but failed in aws lambda. Do you have more suggestions? (based on your answere i found temp solution with using ip instead domain name , but also i must add rejectunauthorized , somthing i tried to avoid)