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

V2.6.1版本 TooManyResultsException #5907

Open
your-ben-brother opened this issue Jan 21, 2025 · 12 comments
Open

V2.6.1版本 TooManyResultsException #5907

your-ben-brother opened this issue Jan 21, 2025 · 12 comments
Labels
type: question Further information is requested

Comments

@your-ben-brother
Copy link

your-ben-brother commented Jan 21, 2025

Question

我在试着注册springcloud服务到shenyu-admin,客户端的配置如下:
shenyu:
 register:
  enabled: true
  registerType: http
  serverLists: http://localhost:9095
  props:
    username: admin
    password: 1qaz!QAZ
  client:
    springCloud:
      props:
        contextPath: /system
        port: 8193
        isFull: true
然后再admin中查看springcloud的插件选择器报错

Image
我查了下数据库,是表的数据多了,但是我不知道问题出在哪里

Image

@your-ben-brother your-ben-brother added the type: question Further information is requested label Jan 21, 2025
@Aias00
Copy link
Contributor

Aias00 commented Jan 21, 2025

hi, more error logs, pls?

@your-ben-brother
Copy link
Author

Image 这行报错了,大佬

@your-ben-brother
Copy link
Author

Image我发现一个奇怪的现象,同样的信息client会注册5次,应该就是这个问题

@Aias00
Copy link
Contributor

Aias00 commented Jan 21, 2025

hi, springcloud client should register to a registry center such as nacos or eureka, which is the serverLists properties
your config means to use shenyu-admin itself as a registry center, there may be a mistake. try use some registry center. and we will try to recurrent this error and fix it

@your-ben-brother
Copy link
Author

your-ben-brother commented Jan 21, 2025

Image v2.6.1版本的registerType只能是http,如果是nacos直接报错,这个serverLists 地址没法改动啊,很困惑

@Aias00
Copy link
Contributor

Aias00 commented Jan 22, 2025

hi, can you show your client project`s pom and config properties? so we can try to recurrent this error

@Aias00
Copy link
Contributor

Aias00 commented Jan 22, 2025

by the way , if u want to register springcloud client to admin. u can refer this: https://shenyu.apache.org/zh/docs/quick-start/quick-start-springcloud

@your-ben-brother
Copy link
Author

your-ben-brother commented Jan 22, 2025

大佬,粘贴配置没有格式,我直接贴图了啊,客户端我的pom只添加了一个依赖

Image

然后配置文件添加了如下配置,其他的都没动,然后启动客户端

Image
启动过程就会发现这样的日志:

Image

@Aias00
Copy link
Contributor

Aias00 commented Jan 22, 2025

can u add my wechat: aias00

@your-ben-brother
Copy link
Author

by the way , if u want to register springcloud client to admin. u can refer this: https://shenyu.apache.org/zh/docs/quick-start/quick-start-springcloud

大佬这个例子我跑通了,接口可以正常通过网关转发,现在就只有刚才提的问题了,还有个疑问,就是springcloud插件和divide插件的根本区别在什么地方,我一个http请求过来,先过divide然后springcloud,不都是对请求的分流么,难道只是针对不同的协议么

@Aias00
Copy link
Contributor

Aias00 commented Jan 22, 2025

by the way , if u want to register springcloud client to admin. u can refer this: https://shenyu.apache.org/zh/docs/quick-start/quick-start-springcloud

大佬这个例子我跑通了,接口可以正常通过网关转发,现在就只有刚才提的问题了,还有个疑问,就是springcloud插件和divide插件的根本区别在什么地方,我一个http请求过来,先过divide然后springcloud,不都是对请求的分流么,难道只是针对不同的协议么

yes, divide plugin and springcloud plugin now have a little difference. springcloud clients upstream should be found from a registry center. and the distribution logic is just same. next version we will remove the springcloud plugin

@your-ben-brother
Copy link
Author

can u add my wechat: aias00
大佬加你了,有空通过下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants