TelepathyIM / telepathy-morse

Telegram connection manager for the Telepathy framework
GNU General Public License v2.0
62 stars 10 forks source link

Can't connect after disconecting #61

Open Thaodan opened 6 years ago

Thaodan commented 6 years ago

After authenticating via entering the pin code from telegram everything is fine. But when disconnecting afterwards and reconnecting it doesn't work until the secret cache is removed. My System: Name : telepathy-morse-git Version : r198.e8c2ef9-2 Branch build from : dev Name : telegram-qt-git Version : r1141.1e45787-1 Branch build from : master Distro : Arch Linux

Log:

https://paste.kde.org/pamwbxutq

Thaodan commented 6 years ago

I seems that the connection manager caches the secret when there's no pin code entered.

Kaffeine commented 6 years ago

Yes, that's true. At December I had the same issue and a workaround for the old API would require a complex logic. The issue is ruled out in the new API, I hope to roll out the first Morse port before April.

Thaodan commented 6 years ago

So just delete the cache everytime I get a dc or is there a better workaround?

What do you mean by new API?

Kaffeine commented 6 years ago

Probably fixed by commit https://github.com/Kaffeine/telegram-qt/commit/4c5eb3016269cd7596ce390aa12e2dfb8e209135

Kaffeine commented 6 years ago

The new API is growing in the 'next' branch. I'll let you know when it will be capable to receive text messages. :-) :-(

Thaodan commented 6 years ago

After logging sucsessfull, the 2nd time just get stuck but still asks for a key at telegram and doesn't ask for this key at tp

Thaodan commented 6 years ago

Log for the time when this happens tp_morse.log

Thaodan commented 6 years ago

Always this error: bool CTelegramConnection::processRpcError(CTelegramStream&, quint64, TLValue) "RPC Error 420: FLOOD_WAIT_74696 for message 6545897377532202508 AuthSendCode (dc 2|149.154.167.51:443)" RPC Error can not be handled.

Thaodan commented 6 years ago

I think the issue is that this is not handled: https://core.telegram.org/api/errors#420-flood

Thaodan commented 6 years ago

tp_morse_after_restart.log

Thaodan commented 6 years ago

Works now. Except that after sometime no messsages come in.