• 报错:Error occurred while trying to proxy request /api/captcha/code from 192.168.43.242:9528 to http://192.168.43.242:8008


    报错如下:

    [HPM] Error occurred while trying to proxy request /api/user/getInnerLabel from 192.168.43.242:9528 to http://192.168.43.242:8008 (ECONNREFUSED) (
    https://nodejs.org/api/errors.html#errors_common_system_errors)
    [HPM] Error occurred while trying to proxy request /api/captcha/code from 192.168.43.242:9528 to http://192.168.43.242:8008 (ECONNREFUSED) (https:
    //nodejs.org/api/errors.html#errors_common_system_errors)
    [HPM] Error occurred while trying to proxy request /api/user/initLogin from 192.168.43.242:9528 to http://192.168.43.242:8008 (ECONNREFUSED) (http
    s://nodejs.org/api/errors.html#errors_common_system_errors)

     报错原因:前端代理到后台的时候,没有找到后台。如何发现呢?浏览器访问http://192.168.43.242:8008,报错找不到页面,如下所示:

    说明后台无法访问,最后发现是端口错了。

  • 相关阅读:
    7月31号
    7月29号
    性能优化、微服务、并发编程、开源框架、分布式,面试你还缺什么
    Java 异常_2
    Java 异常浅学
    Java IO浅学
    Java File文件的读写
    Java BufferedReader 控制台输入
    Java 内部类
    Java 动静态绑定
  • 原文地址:https://www.cnblogs.com/zwh0910/p/16385544.html
Copyright © 2020-2023  润新知