webrtc
webrtc copied to clipboard
TURN example failing against coturn
I'm running the basic TURN example (RUST_LOG=trace cargo run --color=always --package turn --example turn_client_udp -- --host 0.0.0.0 --user user=pass --ping) against a simple run of coturn (turnserver --log-file stdout) and I can't get passed the client reporting this error:
[2025-03-10T22:27:46Z DEBUG turn::client] resolving 0.0.0.0:3478
[2025-03-10T22:27:46Z DEBUG turn::client] stunServ: 0.0.0.0:3478
[2025-03-10T22:27:46Z DEBUG turn::client] resolving 0.0.0.0:3478
[2025-03-10T22:27:46Z DEBUG turn::client] turnServ: 0.0.0.0:3478
[2025-03-10T22:27:46Z DEBUG turn::client] allocate check: read_ch_tx_opt = false
[2025-03-10T22:27:46Z DEBUG turn::client] client.Allocate call PerformTransaction 1
[2025-03-10T22:27:46Z TRACE turn::client] start Allocate request transaction /WCQ0/3LqUmDwhrx to 0.0.0.0:3478
[2025-03-10T22:27:46Z DEBUG turn::client] received 88 bytes of udp from 127.0.0.1:3478
Error: Stun(ErrAttributeNotFound)
Is there any way to get more information out of this? Like what attribute is not found or why it might not be found? Unfortunately coturn also is not logging anything useful about this so the whole failure reason is a bit of a mystery.
I had the same issue, but it was because turnserver was configured with "no-auth", because the missing attribute was Nonce. Removing the "no-auth" from coturn config made the example work.