应用注册不上

Aperta
#3,507 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
java, spring

Direzione di ricerca

Riproduci la configurazione segnalata con sentinel-dashboard-1.8.8, le dipendenze Spring Cloud Alibaba Sentinel 2021.1 e i log di SimpleHttpHeartbeatSender. Inizia dalla richiesta heartbeat a 192.168.30.39:8719 e dal percorso di registrazione della dashboard; il lavoro è concluso quando hai identificato il motivo per cui la richiesta restituisce HTTP 400 e confermato che l’applicazione appare nella dashboard.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

控制台:
java -Dserver.port=8080 -Dcsp.sentinel.dashboard.server=localhost:8080 -Dproject.name=sentinel-dashboard -jar sentinel-dashboard-1.8.8.jar

应用依赖,默认1.8.0以为有bug升级到1.8.8一样返回400

<dependency>
	<groupId>com.alibaba.cloud</groupId>
	<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
	<version>2021.1</version>
</dependency>

<dependency>
	<groupId>com.alibaba.cloud</groupId>
	<artifactId>spring-cloud-alibaba-sentinel-gateway</artifactId>
	<version>2021.1</version>
</dependency>

<dependency><groupId>com.alibaba.csp</groupId><artifactId>sentinel-annotation-aspectj</artifactId><version>1.8.8</version></dependency>
<dependency><groupId>com.alibaba.csp</groupId><artifactId>sentinel-api-gateway-adapter-common</artifactId><version>1.8.8</version></dependency>
<dependency><groupId>com.alibaba.csp</groupId><artifactId>sentinel-cluster-client-default</artifactId><version>1.8.8</version></dependency>
<dependency><groupId>com.alibaba.csp</groupId><artifactId>sentinel-cluster-common-default</artifactId><version>1.8.8</version></dependency>
<dependency><groupId>com.alibaba.csp</groupId><artifactId>sentinel-cluster-server-default</artifactId><version>1.8.8</version></dependency>
<dependency><groupId>com.alibaba.csp</groupId><artifactId>sentinel-core</artifactId><version>1.8.8</version></dependency>
<dependency><groupId>com.alibaba.csp</groupId><artifactId>sentinel-datasource-extension</artifactId><version>1.8.8</version></dependency>
<dependency><groupId>com.alibaba.csp</groupId><artifactId>sentinel-parameter-flow-control</artifactId><version>1.8.8</version></dependency>
<dependency><groupId>com.alibaba.csp</groupId><artifactId>sentinel-reactor-adapter</artifactId><version>1.8.8</version></dependency>
<dependency><groupId>com.alibaba.csp</groupId><artifactId>sentinel-spring-cloud-gateway-adapter</artifactId><version>1.8.8</version></dependency>
<dependency><groupId>com.alibaba.csp</groupId><artifactId>sentinel-spring-webflux-adapter</artifactId><version>1.8.8</version></dependency>
<dependency><groupId>com.alibaba.csp</groupId><artifactId>sentinel-spring-webmvc-adapter</artifactId><version>1.8.8</version></dependency>
<dependency><groupId>com.alibaba.csp</groupId><artifactId>sentinel-transport-common</artifactId><version>1.8.8</version></dependency>
<dependency><groupId>com.alibaba.csp</groupId><artifactId>sentinel-transport-simple-http</artifactId><version>1.8.8</version></dependency>

应用日志:

2025-03-11 15:32:23.470 WARNING [SimpleHttpHeartbeatSender] Failed to send heartbeat to Endpoint{protocol=HTTP, host='192.168.30.39, port=8719}, http status code: 400
2025-03-11 15:32:33.466 WARNING [SimpleHttpHeartbeatSender] Failed to send heartbeat to Endpoint{protocol=HTTP, host='192.168.30.39, port=8719}, http status code: 400
2025-03-11 15:32:43.464 WARNING [SimpleHttpHeartbeatSender] Failed to send heartbeat to Endpoint{protocol=HTTP, host='192.168.30.39, port=8719}, http status code: 400
2025-03-11 15:32:53.462 WARNING [SimpleHttpHeartbeatSender] Failed to send heartbeat to Endpoint{protocol=HTTP, host='192.168.30.39, port=8719}, http status code: 400

控制台日志没看到任何报错
logging.level.root=debug修改控制台日志配置
只看到dashboard自己发自己的心跳

控制台:
java -Dserver.port=8080 -Dcsp.sentinel.dashboard.server=localhost:8080 -Dproject.name=sentinel-dashboard -jar sentinel-dashboard-1.8.8.jar

应用依赖,默认1.8.0以为有bug升级到1.8.8一样返回400

<dependency>
	<groupId>com.alibaba.cloud</groupId>
	<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
	<version>2021.1</version>
</dependency>

<dependency>
	<groupId>com.alibaba.cloud</groupId>
	<artifactId>spring-cloud-alibaba-sentinel-gateway</artifactId>
	<version>2021.1</version>
</dependency>

<dependency><groupId>com.alibaba.csp</groupId><artifactId>sentinel-annotation-aspectj</artifactId><version>1.8.8</version></dependency>
<dependency><groupId>com.alibaba.csp</groupId><artifactId>sentinel-api-gateway-adapter-common</artifactId><version>1.8.8</version></dependency>
<dependency><groupId>com.alibaba.csp</groupId><artifactId>sentinel-cluster-client-default</artifactId><version>1.8.8</version></dependency>
<dependency><groupId>com.alibaba.csp</groupId><artifactId>sentinel-cluster-common-default</artifactId><version>1.8.8</version></dependency>
<dependency><groupId>com.alibaba.csp</groupId><artifactId>sentinel-cluster-server-default</artifactId><version>1.8.8</version></dependency>
<dependency><groupId>com.alibaba.csp</groupId><artifactId>sentinel-core</artifactId><version>1.8.8</version></dependency>
<dependency><groupId>com.alibaba.csp</groupId><artifactId>sentinel-datasource-extension</artifactId><version>1.8.8</version></dependency>
<dependency><groupId>com.alibaba.csp</groupId><artifactId>sentinel-parameter-flow-control</artifactId><version>1.8.8</version></dependency>
<dependency><groupId>com.alibaba.csp</groupId><artifactId>sentinel-reactor-adapter</artifactId><version>1.8.8</version></dependency>
<dependency><groupId>com.alibaba.csp</groupId><artifactId>sentinel-spring-cloud-gateway-adapter</artifactId><version>1.8.8</version></dependency>
<dependency><groupId>com.alibaba.csp</groupId><artifactId>sentinel-spring-webflux-adapter</artifactId><version>1.8.8</version></dependency>
<dependency><groupId>com.alibaba.csp</groupId><artifactId>sentinel-spring-webmvc-adapter</artifactId><version>1.8.8</version></dependency>
<dependency><groupId>com.alibaba.csp</groupId><artifactId>sentinel-transport-common</artifactId><version>1.8.8</version></dependency>
<dependency><groupId>com.alibaba.csp</groupId><artifactId>sentinel-transport-simple-http</artifactId><version>1.8.8</version></dependency>

应用日志:

2025-03-11 15:32:23.470 WARNING [SimpleHttpHeartbeatSender] Failed to send heartbeat to Endpoint{protocol=HTTP, host='192.168.30.39, port=8719}, http status code: 400
2025-03-11 15:32:33.466 WARNING [SimpleHttpHeartbeatSender] Failed to send heartbeat to Endpoint{protocol=HTTP, host='192.168.30.39, port=8719}, http status code: 400
2025-03-11 15:32:43.464 WARNING [SimpleHttpHeartbeatSender] Failed to send heartbeat to Endpoint{protocol=HTTP, host='192.168.30.39, port=8719}, http status code: 400
2025-03-11 15:32:53.462 WARNING [SimpleHttpHeartbeatSender] Failed to send heartbeat to Endpoint{protocol=HTTP, host='192.168.30.39, port=8719}, http status code: 400

控制台日志没看到任何报错
logging.level.root=debug修改控制台日志配置
只看到dashboard自己发自己的心跳,列表只能看到自己,无语了不知道为什么

Image

Lingua principale
Java
Stelle
23.1k
Fork
8.1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di alibaba/Sentinel

Tutte le issue di alibaba/Sentinel

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.