biz中有些接口可以访问,但是没有返回值,提示nacos找不到服务

Blade 未结 2 83
625513227
625513227 剑圣 2024-11-19 11:43

一、该问题的重现步骤是什么?

在biz创建了一个服务,大部分接口都有返回值,但是有些接口可以访问,打印出来的有返回值,但是前端接收不到返回值,比如list 查询列表(代码生成的,有些模块list可以访问),select 下拉数据接口
控制台报错提示:

2024-11-19 11:34:54.492  WARN 22148 --- [  XNIO-1 task-4] .c.RetryAwareServiceInstanceListSupplier : No instances found after removing previously used service instance from the search (com.alibaba.cloud.nacos.NacosServiceInstance@78ada8d8). Returning all found instances.
2024-11-19 11:34:54.539  WARN 22148 --- [  XNIO-1 task-5] .c.RetryAwareServiceInstanceListSupplier : No instances found after removing previously used service instance from the search (com.alibaba.cloud.nacos.NacosServiceInstance@78ada8d8). Returning all found instances.
2024-11-19 11:34:59.601  WARN 22148 --- [  XNIO-1 task-6] .c.RetryAwareServiceInstanceListSupplier : No instances found after removing previously used service instance from the search (com.alibaba.cloud.nacos.NacosServiceInstance@78ada8d8). Returning all found instances.
2024-11-19 11:34:59.601  WARN 22148 --- [  XNIO-1 task-3] .c.RetryAwareServiceInstanceListSupplier : No instances found after removing previously used service instance from the search (com.alibaba.cloud.nacos.NacosServiceInstance@78ada8d8). Returning all found instances.
2024-11-19 11:35:03.470  INFO 22148 --- [  XNIO-1 task-7] c.a.c.s.e.SentinelHealthIndicator        : Find sentinel dashboard server list: [Endpoint{protocol=HTTP, host='192.168.1.6, port=8858}]


1731987038297.jpg
或者提示

For 'blade-system' URL not provided. Will try picking an instance via load-balancing.

2024-11-19 11:19:54.937  WARN 21872 --- [  XNIO-1 task-3] .c.RetryAwareServiceInstanceListSupplier : No instances found after removing previously used service instance from the search (com.alibaba.cloud.nacos.NacosServiceInstance@78ada8d8). Returning all found instances.

2024-11-19 11:19:54.951  WARN 21872 --- [  XNIO-1 task-2] .c.RetryAwareServiceInstanceListSupplier : No instances found after removing previously used service instance from the search (com.alibaba.cloud.nacos.NacosServiceInstance@78ada8d8). Returning all found instances.

2024-11-19 11:20:04.955  INFO 21872 --- [  XNIO-1 task-3] o.s.core.log.aspect.RequestLogAspect     : 


二、你期待的结果是什么?实际看到的又是什么?

后台返回值前端可以正常接收。但是目前前端接受到的是无法加载响应数据

三、你正在使用的是什么产品,什么版本?在什么操作系统上?

blade 4.2.0 win


2条回答
  • 2024-11-19 11:47

    补充:使用的是2台电脑,bladex项目是在一个电脑上,是否跟gateway有关,两个项目的gateway都启动了,配置文件没有修改,端口都是80

    0 讨论(0)
  • 2024-11-19 11:50

    这些出问题的接口是一直都有问题还是一会好一会不好。bladex自带的服务里的接口有没有问题,有没有出现这个问题。

    两个gateway你关掉一个,保留和服务同一台机器启动的gateway。然后再访问看看结果。

    0 讨论(0)
提交回复