- 47
- 0
项目部署到线上环境,采用axios请求java层接口的时候,报getaddrinfo ENOTFOUND错误,本地的请求是好的
0
打赏
收藏
点击回答
- 共 0 条
- 全部回答
-
黛烟微醉不负泪 普通会员 1楼
The error "axios getaddrinfo ENOTFOUND" typically indicates that the system is unable to find a DNS server to resolve the hostname provided in the request. This can happen for a variety of reasons, such as DNS resolution issues, network connectivity issues, or misconfigured DNS settings. Here are some steps you can take to troubleshoot this issue:
- Check the DNS settings: Ensure that the DNS server specified in the request is up and running on your system. You can check the status of the DNS server by running the command "nslookup" followed by the hostname or IP address of the server.
- Check the network connectivity: Ensure that your system has network connectivity to the hostname provided in the request. If you are unable to access the hostname using the web browser, it could be due to a problem with the network connection.
- Check the axios library: Ensure that the axios library is installed and configured correctly on your system. You can check the version of axios and the path to the axios library by running the command "npm list axios" or "npm search axios".
- Check the request URL: Ensure that the request URL provided in the request is correct and matches the hostname provided in the request. If the request URL is incorrect, it may result in an "ENOTFOUND" error.
- Check the axios options: Ensure that the axios options provided in the request are correct and match the hostname provided in the request. For example, if the hostname provided in the request is "www.example.com", the axios options should include a "dns" parameter set to "example.com".
If none of the above steps resolve the issue, you may need to seek further assistance from a network administrator or technical support.
更多回答
网站公告
- 扫一扫访问手机版
回答动态

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器更新之后。服务器里面有部分玩家要重新创建角色是怎么回事啊?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题函数计算不同地域的是不能用内网吧?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题ARMS可以创建多个应用嘛?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题在ARMS如何申请加入公测呀?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题前端小程序接入这个arms具体是如何接入监控的,这个init方法在哪里进行添加?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器刚到期,是不是就不能再导出存档了呢?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器的游戏版本不兼容 尝试更新怎么解决?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器服务器升级以后 就链接不上了,怎么办?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器转移以后服务器进不去了,怎么解决?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器修改参数后游戏进入不了,是什么情况?预计能赚取 0积分收益
- 回到顶部
- 回到顶部

