clash-rs icon indicating copy to clipboard operation
clash-rs copied to clipboard

Switching from an error node to a normal node needs to restart the core

Open xmh0511 opened this issue 1 year ago • 2 comments

When using node A, once the node A becoms error, then manually switch from node A to a work node B, I must restart the clash-rs, then the traffic proxy can work.

The relevant logs are:

2024-01-08 10:49:25 INFO - [clash]: 2024-01-08T02:49:25.166858Z  WARN clash_lib/src/proxy/transport/grpc.rs:173: grpc initialization error

2024-01-08 10:49:25 INFO - [clash]: 2024-01-08T02:49:25.299102Z  WARN clash_lib/src/proxy/transport/grpc.rs:83: grpc handshake resp err: Some(Ok(b"error code: 520"))

2024-01-08 10:49:25 INFO - [clash]: 2024-01-08T02:49:25.299141Z  WARN clash_lib/src/proxy/transport/grpc.rs:173: grpc initialization error

2024-01-08 10:49:25 INFO - [clash]: 2024-01-08T02:49:25.395064Z  WARN clash_lib/src/proxy/transport/grpc.rs:83: grpc handshake resp err: Some(Ok(b"error code: 520"))

2024-01-08 10:49:25 INFO - [clash]: 2024-01-08T02:49:25.395154Z  WARN clash_lib/src/proxy/transport/grpc.rs:173: grpc initialization error

2024-01-08 10:51:06 INFO - [clash]: 2024-01-08T02:51:06.527143Z  WARN clash_lib/src/proxy/transport/grpc.rs:83: grpc handshake resp err: Some(Ok(b"error code: 520"))

2024-01-08 10:51:06 INFO - [clash]: 2024-01-08T02:51:06.527173Z  WARN clash_lib/src/proxy/transport/grpc.rs:173: grpc initialization error

2024-01-08 10:51:06 INFO - [clash]: 2024-01-08T02:51:06.702915Z  WARN clash_lib/src/proxy/transport/grpc.rs:83: grpc handshake resp err: Some(Ok(b"error code: 520"))

2024-01-08 10:51:06 INFO - [clash]: 2024-01-08T02:51:06.702946Z  WARN clash_lib/src/proxy/transport/grpc.rs:173: grpc initialization error

2024-01-08 10:51:06 INFO - [clash]: 2024-01-08T02:51:06.703303Z  WARN clash_lib/src/proxy/transport/grpc.rs:83: grpc handshake resp err: Some(Ok(b"error code: 520"))

2024-01-08 10:51:06 INFO - [clash]: 2024-01-08T02:51:06.703330Z  WARN clash_lib/src/proxy/transport/grpc.rs:173: grpc initialization error

2024-01-08 10:51:06 INFO - [clash]: 2024-01-08T02:51:06.710480Z  WARN clash_lib/src/proxy/transport/grpc.rs:83: grpc handshake resp err: Some(Ok(b"error code: 520"))

2024-01-08 10:51:06 INFO - [clash]: 2024-01-08T02:51:06.710506Z  WARN clash_lib/src/proxy/transport/grpc.rs:173: grpc initialization error


The clash-premium does not have this issue.

xmh0511 avatar Jan 08 '24 02:01 xmh0511

Is it a select group? Can you turn on the debug log and post it here when you can't change node?

ibigbug avatar Jan 08 '24 05:01 ibigbug

https://github.com/Watfaq/clash-rs/assets/17973891/92139fa0-e1f9-43e2-82b8-d505c9f5b33a

See this video

xmh0511 avatar Jan 08 '24 08:01 xmh0511