telepathy-morse icon indicating copy to clipboard operation
telepathy-morse copied to clipboard

Can't connect after disconecting

Open Thaodan opened this issue 7 years ago • 11 comments

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 avatar Feb 09 '18 13:02 Thaodan

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

Thaodan avatar Feb 09 '18 18:02 Thaodan

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.

Kaffeine avatar Feb 09 '18 18:02 Kaffeine

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

What do you mean by new API?

Thaodan avatar Feb 09 '18 18:02 Thaodan

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

Kaffeine avatar Mar 24 '18 00:03 Kaffeine

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

Kaffeine avatar Mar 24 '18 00:03 Kaffeine

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 avatar Apr 18 '18 20:04 Thaodan

Log for the time when this happens tp_morse.log

Thaodan avatar Apr 18 '18 21:04 Thaodan

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 avatar Apr 18 '18 21:04 Thaodan

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

Thaodan avatar Apr 18 '18 21:04 Thaodan

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

Thaodan avatar Jun 13 '18 11:06 Thaodan