shenyu icon indicating copy to clipboard operation
shenyu copied to clipboard

[Question] <title>mac m1 start application fail,websocket connection refused

Open Cyoking opened this issue 2 years ago • 5 comments

Question

The configuration of h2 is used, and other contents have not been changed. image

The error message after startup is as follows: image

Cyoking avatar Aug 26 '22 09:08 Cyoking

pls in english?

yu199195 avatar Aug 26 '22 09:08 yu199195

👌

Cyoking avatar Aug 26 '22 09:08 Cyoking

pls in english?

can you see what's the problem?

Cyoking avatar Aug 26 '22 09:08 Cyoking

My guess : your admin address is not accessible through localhost. You can visit in your browser : localhost:9095 ?.

if not, pls modify application.yaml in shenyu-bootstrap :

shenyu:
  sync:
    websocket:
      urls: ws://your ip:9095/websocket
      allowOrigin: ws://your ip:9195

yu199195 avatar Aug 26 '22 10:08 yu199195

/websocket

it seems that i still can't. this is my application.yaml image

can't run application image image

Cyoking avatar Aug 26 '22 12:08 Cyoking

you need to check the shenyu-admin configuration. shenyu.sync.websocket.enabled = true if shenyu-admin is started, you can test it by accessing ip:port/websocket

and you need to check the shenyu-bootstarp configuration. The correct configuration should be shenyu.sync. websocket.urls

peng-heng avatar Nov 17 '22 02:11 peng-heng