netbird icon indicating copy to clipboard operation
netbird copied to clipboard

Error displayed instead of a Status when peer has been removed

Open braginini opened this issue 3 years ago • 0 comments

Steps to reproduce.

  1. Enroll a peer
  2. Make sure it is connected to the management service
  3. Remove peer from the management service
  4. run netbird status command

Output:

netbird status
Error: status failed: provided peer with the key wgPubKey hOCcdJixg7waW5WxbHSxy5KnYEkvdJVP9H/F423CvjY= is not registered and no setup key or jwt was provided, remote addr is 127.0.0.1:57582

Expected something like that or other Status, e.g. Idle

Daemon version: development
CLI version: development
Daemon status: Idle
Management: Disconnected
Signal:  Disconnected
NetBird IP: N/A
Interface type: N/A
Peers count: 0/0 Connected

P.S. I think that is worth adding a new field ErrorMessage to StatusResponse. Along with status, it will show the latest error received.

braginini avatar Sep 10 '22 20:09 braginini