ActivityWatch / aw-watcher-window-wayland

Window and AFK watcher for some Wayland compositors
Mozilla Public License 2.0
57 stars 14 forks source link

Transport endpoint is not connected #21

Closed varac closed 1 year ago

varac commented 1 year ago

I fail to run aw-watcher-window-wayland. It complains about the Transport endpoint is not connected , but using curl it seems the endpoint is ok:

❯ aw-watcher-window-wayland
### Setting up display
### Fetching wayland globals
### Setting up toplevel manager
### Setting up idle timeout
### Syncing roundtrip
### Preparing poll fds
### Taking client locks
### Creating aw-client
thread 'main' panicked at 'Failed to create window bucket: Error(Hyper(Error(Connect, Os { code: 107, kind: NotConnected, message: "Transport endpoint is not connected" })), "http://localhost:5600/api/0/buckets/aw-watcher-window_zancas")', src/main.rs:136:10
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

❯ curl http://localhost:5600/api/0/buckets/aw-watcher-window_zancas
{"id": "aw-watcher-window_zancas", "created": "2023-02-06T19:28:12.269456+00:00", "name": null, "type": "currentwindow", "client": "aw-watcher-window", "hostname": "zancas"}

❯ sudo netstat -tulpen | grep 5600
tcp        0      0 127.0.0.1:5600          0.0.0.0:*               LISTEN      1000       179367     78392/aw-server     

What am I doing wrong ?

johan-bjareholt commented 1 year ago

@varac Could you try again with the latest git version?

varac commented 1 year ago

@johan-bjareholt Awesome, it works with latest git now, thanks :white_flower: !