Replies: 1 comment 6 replies
-
create a ws proxy is ok, but wss is error and throw failed to find upstream by id: 418527821128794814,is this means already forward but the targt service no response? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The config in above. Set the cert and websocket address info in upsteam;then set the proxy path and rewrite https in route.
The actual websocket service id wss://ip:port/ws, when visit by 'ws://127.0.0.1:9080/ws', the request reach apisix service but forward error.
2022/07/28 15:24:58 [info] 44#44: *27028 [lua] init.lua:378: http_access_phase(): matched route: {"clean_handlers":{},"createdIndex":34186,"key":"/apisix/routes/418527933334815422","value":{"uri":"/ws","priority":0,"upstream_id":"418527821128794814","name":"mqtt","enable_websocket":true,"id":"418527933334815422","update_time":1658993052,"create_time":1658991687,"status":1,"methods":["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS","CONNECT","TRACE"]},"update_count":0,"orig_modifiedIndex":34200,"modifiedIndex":34200,"has_domain":false}, client: 172.18.0.1, server: _, request: "GET /ws HTTP/1.1", host: "172.16.15.131:9080"
2022/07/28 15:24:58 [error] 44#44: *27028 [lua] upstream.lua:555: get_by_id(): failed to find upstream by id: 418527821128794814, client: 172.18.0.1, server: _, request: "GET /ws HTTP/1.1", host: "172.16.15.131:9080"
2022/07/28 15:24:58 [info] 44#44: *27028 client 172.18.0.1 closed keepalive connection
Beta Was this translation helpful? Give feedback.
All reactions