Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

提示Network Error #55

Closed
Li-xp opened this issue Feb 4, 2021 · 7 comments
Closed

提示Network Error #55

Li-xp opened this issue Feb 4, 2021 · 7 comments

Comments

@Li-xp
Copy link

Li-xp commented Feb 4, 2021

网易云API正常运行,.env中链接已经修改,一进去就提示Network Error

@maomao1996
Copy link
Owner

自己看下控制台的信息,还有 api 项目的 log 打印

@Li-xp
Copy link
Author

Li-xp commented Feb 5, 2021

通过在Index.html中加入解决了控制台输出This request has been blocked; the content must be served over HTTPS.错误的问题,但还是提示Network Error。

@maomao1996
Copy link
Owner

浏览器打开 api 的服务看看有没有启动好

@Li-xp
Copy link
Author

Li-xp commented Feb 5, 2021

API服务正常启动

@Li-xp
Copy link
Author

Li-xp commented Feb 5, 2021

分析控制台可以得出在运行过程中请求的接口地址为“域名:3000”,但是我在.env中写入的接口为"IP:3000",就很奇怪

@maomao1996
Copy link
Owner

只要你浏览能够正常访问 api,env 中的地址和你的 api 服务地址一致就不会出现 Network Error

自己好好检查下哪里写的不对吧

@Li-xp
Copy link
Author

Li-xp commented Feb 8, 2021

问题已解决。为后端接口部署SSL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants