在浏览器中访问网站时,我看到以下错误..
Api在浏览器和邮递员中都能工作,但是Ember快速引导不起作用.任何帮助都应该很有帮助。
FetchError:请求https://test.news.bor.doi.test/api/?format=json&type=footer&type=footer-menu失败,原因: getaddrinfo ENOTFOUND test.news.bor.doi.test at ClientRequest。(/data/webs/newsdev/frontend/node_modules/node-fetch/lib/index.js:1491:11) at ClientRequest.emit (节点:527:28)在TLSSocket.socketErrorListener (node:_http_client:454:9) at TLSSocket.emit (节点:527:28),在emitErrorNT (节点:内部/流/销毁:157:8),在emitErrorCloseNT (节点:内部/流/销毁:122:3),在processTicksAndRejections (节点:内部/进程/任务队列:83:21)
发布于 2022-06-26 07:45:33
一旦我遇到同样的问题,对我来说,导致它的原因是dns服务器被设置为localhost
,所以我的服务器没有解析任何域名。检查/etc/resolv.conf
(如果是nameserver localhost
),将其更改为nameserver 8.8.8.8
https://stackoverflow.com/questions/72606719
复制相似问题