小编chl*_*loy的帖子

Axios 错误:连接 ECONNREFUSED 127.0.0.1:80

您好,我是 nodejs 的新手,当我运行我的应用程序时出现此错误“错误:连接 ECONNREFUSED 127.0.0.1:80”这是我的代码

const axios = require('axios')

const url = 'api.openweathermap.org/data/2.5/weather?q=London,uk&appid=4dd23b28fb57078c0d5ec9c653e203b2'

axios.get(url)
   .then((response) =>{
       console.log(response)
   })
   .catch(function (error) {
    console.log(error);
  })
  
Run Code Online (Sandbox Code Playgroud)

先感谢您

javascript node.js axios

0
推荐指数
1
解决办法
2509
查看次数

标签 统计

axios ×1

javascript ×1

node.js ×1