arco-design / arco-cli

CLI tool for Arco Design
https://arco.design/docs/material/guide
MIT License
203 stars 76 forks source link

初始化项目报错:AxiosError: Request failed with status code 400 #42

Closed chandleeeee closed 1 year ago

chandleeeee commented 2 years ago
屏幕截图 2022-06-29 153249

运行在 WSL2 ubuntu

MisterLuffy commented 2 years ago

你的环境可以访问这个接口不 https://arco.design/material/api/getHostInfo

chandleeeee commented 2 years ago
屏幕截图

用curl可以 有工具要求吗

MisterLuffy commented 2 years ago

我这边没有什么思路,可能需要你克隆一下仓库帮忙排查一下

WangShayne commented 1 year ago

same issue

WangShayne commented 1 year ago
data: '<html>\r\n' +
      '<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>\r\n' +
      '<body bgcolor="white">\r\n' +
      '<center><h1>400 Bad Request</h1></center>\r\n' +
      '<center>The plain HTTP request was sent to HTTPS port</center>\r\n' +
      '<hr><center>nginx</center>\r\n' +
      '</body>\r\n' +
      '</html>\r\n'

@MisterLuffy nginx相关配置的问题

WangShayne commented 1 year ago

我本机流量通过http代理转发 http://127.0.0.1:1080
暂时通过添加NO_PROXY arco.design解决