点击微信登录,报错,这是什么原因呢,我已经清空了DNS缓存

18:47:33.614 项目 Chatgpt_app 编译成功。前端运行日志,请另行在浏览器的控制台查看。

18:47:33.614 点击控制台右上角debug图标(虫子),可开启断点调试(添加断点:双击编辑器行号添加断点)

18:47:33.614 Web版常见问题参考: https://ask.dcloud.net.cn/article/35232

18:47:48.246 Proxy error: Could not proxy request //mjkj-chat/chat/open/get/clientVersion?platform=Android from localhost:8080 to localhost:9871.

18:47:48.246 See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ENOTFOUND).

18:47:48.358 Proxy error: Could not proxy request //mjkj-chat/chat/open/cssz/list from localhost:8080 to localhost:9871.

18:47:48.359 See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ENOTFOUND).

18:47:50.512 Proxy error: Could not proxy request //mjkj-chat/chat/open/withdrawal/list from localhost:8080 to localhost:9871.

18:47:50.512 See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ENOTFOUND).

18:47:50.620 Proxy error: Could not proxy request //mjkj-chat/chat/open/wxopen/auth from localhost:8080 to localhost:9871.

18:47:50.634 See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ENOTFOUND).

                        =============== 服务端启动的日志 =================

2024-05-28 18:34:28.454  INFO 19216 --- [           main] o.s.b.w.e.undertow.UndertowWebServer     : Undertow started on port(s) 9871 (http)

2024-05-28 18:34:28.457  INFO 19216 --- [           main] d.s.w.p.DocumentationPluginsBootstrapper : Documentation plugins bootstrapped

2024-05-28 18:34:28.459  INFO 19216 --- [sync-executor-1] o.s.core.launch.StartEventListener       : ---[BLADE-API]---启动完成,当前使用的端口:[9871],环境变量:[dev]---


评论区

超级管理员

2024-05-29 09:12

Could not proxy request //mjkj-chat/chat/open/get/clientVersion?platform=Android from localhost:8080 to localhost:9871. 在手机上运行的吗?服务器和客户端是同个ip?

shixianyu@ivreal.com

2024-05-29 11:51

@超级管理员 对,是运行在手机端。 服务端在application-dev.yml中配置了
server:
port: 9872
address: 0.0.0.0
是在局域网下运行的

shixianyu@ivreal.com

2024-05-29 12:34

@超级管理员 我现在在电脑的安卓模拟器上运行,12:32:25.032 wxLogin test_d: , [object Promise] at pages/login/login.vue:165
12:32:25.032 err>>>>>>>>>>, [Object] {"errMsg":"request:fail abort statusCode:-1 Failed to connect to /127.0.0.1:9872"} at pages/login/login.vue:211 链接服务器老是失败 是什么原因呢

超级管理员

2024-05-29 13:37

查看模拟器的局域网ip 看和电脑之间能不能ping通@shixianyu@ivreal.com