ENOTFOUND error only in one subnet

0

I'm getting a ENOTFOUND error when running a node.js process that calls an external API. The process is running in a Fargate service within a VPC with 2 public subnets, one for each AZ. The process runs fine in 1 subnet, but fails in the other one. Both subnets use the same IGW.

Public subnet 1: 10.0.0.0/17 Public subnet 2: 10.0.128.0/17

The Fargate service has public IP enabled and uses both subnets.

  • Hi - Are you using the Amazon provided DNS in each of your subnets? This would be the .2 offset in each CIDR. Have you noted any differences with name resolution between subnets?

没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容