2回答
- 新しい順
- 投票が多い順
- コメントが多い順
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?
回答済み 2ヶ月前
-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.
回答済み 1年前
@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)