arco-cli icon indicating copy to clipboard operation
arco-cli copied to clipboard

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

Open chandleeeee opened this issue 2 years ago • 6 comments

屏幕截图 2022-06-29 153249

运行在 WSL2 ubuntu

chandleeeee avatar Jun 29 '22 07:06 chandleeeee

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

Helium-Z avatar Jun 30 '22 06:06 Helium-Z

屏幕截图

用curl可以 有工具要求吗

chandleeeee avatar Jun 30 '22 14:06 chandleeeee

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

Helium-Z avatar Jul 01 '22 03:07 Helium-Z

same issue

WangShayne avatar Aug 16 '22 06:08 WangShayne

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 avatar Aug 16 '22 06:08 WangShayne

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

WangShayne avatar Aug 16 '22 07:08 WangShayne