boxdot / gurk-rs

Signal Messenger client for terminal
GNU Affero General Public License v3.0
495 stars 38 forks source link

Unable to link device HTTP 409 #298

Closed jan-schreib closed 4 months ago

jan-schreib commented 4 months ago

When trying to link a new device I get a HTTP 409 response:

Error: failed to provision device: Service error: Unexpected response: HTTP 409

Caused by:
    0: Service error: Unexpected response: HTTP 409
    1: Unexpected response: HTTP 409

gurk.log:

2024-07-22T13:49:23.411440Z  INFO presage::manager::linking: generating qrcode from provisioning link: sgnl://linkdevice?uuid=hidden&pub_key=pubkey   
2024-07-22T13:49:37.948754Z  WARN libsignal_service_hyper::websocket: Websocket closing: Some(CloseFrame { code: Normal, reason: "Closed" })
2024-07-22T13:49:37.948798Z ERROR libsignal_service::websocket: SignalWebSocket: Websocket error: end of web request stream; socket closing
2024-07-22T13:49:38.287775Z ERROR put_json{service=Service path="/v1/devices/link" additional_headers=[] credentials_override=Identified(HttpAuth { username: "myphonenumber" })}:request{method=PUT endpoint=Service additional_headers=[] credentials_override=Identified(HttpAuth { username: "myphonenumber" }) path=/v1/devices/link}: libsignal_service_hyper::push_service: Failed to decode HTTP 409 response: Error decoding JSON response: missing field `missingDevices` at line 1 column 42

Version:

~$ gurk -V          
gurk 0.5.0

Also happens when building from git. Thank you!

gferon commented 4 months ago

Hi! We're aware and are currently fixing it upstream 😄

https://github.com/whisperfish/libsignal-service-rs/commit/1b591540b908112816be131d6baa6eafba2129cb