AsamK / signal-cli

signal-cli provides an unofficial commandline, JSON-RPC and dbus interface for the Signal messenger.
GNU General Public License v3.0
3.22k stars 306 forks source link

WARN RecipientHelper - CDSI request failed, trying fallback to CDS #1043

Closed qwentry1 closed 2 years ago

qwentry1 commented 2 years ago

When trying to send a message with the command: signal-cli --trust-new-identities=always -o json --config ../signal_cli/999999999 -a +999999999 send -m "test message" +123 +456 +789 I get this error, but messages seem to be sent.

[2022-10-07 12:16:54,609] - UnknownError error_text='WARN  RecipientHelper - CDSI request failed, trying fallback to CDS'
[2022-10-07 12:16:54,609] - UnknownError error_text='\tat org.whispersystems.signalservice.api.SignalServiceAccountManager.getRegisteredUsersWithCdsi(SignalServiceAccountManager.java:579)'
[2022-10-07 12:16:54,609] - UnknownError error_text='\tat org.asamk.signal.manager.helper.RecipientHelper.getRegisteredUsersV2(RecipientHelper.java:158)'
[2022-10-07 12:16:54,609] - UnknownError error_text='\tat org.asamk.signal.manager.helper.RecipientHelper.getRegisteredUsers(RecipientHelper.java:112)'
[2022-10-07 12:16:54,609] - UnknownError error_text='\tat org.asamk.signal.manager.helper.RecipientHelper.getRegisteredUser(RecipientHelper.java:128)'
[2022-10-07 12:16:54,610] - UnknownError error_text='\tat org.asamk.signal.manager.helper.RecipientHelper.lambda$resolveRecipient$0(RecipientHelper.java:91)'
[2022-10-07 12:16:54,610] - UnknownError error_text='\tat org.asamk.signal.manager.storage.recipients.RecipientStore.resolveRecipient(RecipientStore.java:167)'
[2022-10-07 12:16:54,610] - UnknownError error_text='\tat org.asamk.signal.manager.helper.RecipientHelper.resolveRecipient(RecipientHelper.java:89)'
[2022-10-07 12:16:54,610] - UnknownError error_text='\tat org.asamk.signal.manager.ManagerImpl.sendMessage(ManagerImpl.java:447)'
[2022-10-07 12:16:54,610] - UnknownError error_text='\tat org.asamk.signal.manager.ManagerImpl.sendMessage(ManagerImpl.java:552)'
[2022-10-07 12:16:54,610] - UnknownError error_text='\tat org.asamk.signal.commands.SendCommand.handleCommand(SendCommand.java:179)'
[2022-10-07 12:16:54,610] - UnknownError error_text='\tat org.asamk.signal.App.handleLocalCommand(App.java:282)'
[2022-10-07 12:16:54,610] - UnknownError error_text='\tat org.asamk.signal.App.init(App.java:222)'
[2022-10-07 12:16:54,610] - UnknownError error_text='\tat org.asamk.signal.Main.main(Main.java:60)'
[2022-10-07 12:16:54,610] - UnknownError error_text="Caused by: java.net.ProtocolException: Expected HTTP 101 response but was '429 Too Many Requests'"
[2022-10-07 12:16:54,611] - UnknownError error_text='\tat okhttp3.internal.ws.RealWebSocket.checkUpgradeSuccess$okhttp(RealWebSocket.kt:224)'
[2022-10-07 12:16:54,611] - UnknownError error_text='\tat okhttp3.internal.ws.RealWebSocket$connect$1.onResponse(RealWebSocket.kt:170)'
[2022-10-07 12:16:54,611] - UnknownError error_text='\tat okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)'
[2022-10-07 12:16:54,611] - UnknownError error_text='\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)'
[2022-10-07 12:16:54,611] - UnknownError error_text='\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)'
[2022-10-07 12:16:54,611] - UnknownError error_text='\tat java.base/java.lang.Thread.run(Thread.java:833)'

What is it?

AsamK commented 2 years ago

CDSI is the new signal service for getting the account id for a users phone number. signal-cli falls back to the old service in case the new one doesn't work, That's why the message still gets sent. You seem to get into some kind of rate limiting 429 Too Many Requests Do you send many messages to new phone numbers?