mtprotoproxy icon indicating copy to clipboard operation
mtprotoproxy copied to clipboard

Telegram X error 400

Open MAHDITX opened this issue 4 years ago • 9 comments

I sometimes get this error on Telegram X

error (400: response hash mismatch)

Telegram X support gave me this link : https://github.com/tdlib/td/issues/292

What do I need to change to solve this problem?

MAHDITX avatar May 20 '20 16:05 MAHDITX

Ok, I'll try to dig into that issue, thanks

alexbers avatar May 20 '20 19:05 alexbers

I also saw this error a lot

someoneIG avatar Jun 02 '20 15:06 someoneIG

I am trying to reproduce the issue and it seems the proxy working for me. Could you please provide more details to reproduce the bug:

  • what is the Telegram client os and version?
  • what proxy mode do you use? Is it ee mode or dd mode, or the classic one?
  • what version of the proxy do you use? the lattest one from the master branch? Do you use Docker? Are there some interesting messages in the proxy log?

alexbers avatar Jun 02 '20 16:06 alexbers

My OS is Android 10, Telegram X v0.22.8.1361 ee mode (TLS) Yes, I use the latest version and I don't use Docker No, there is nothing interesting in the log

proxy works on official Telegram and Plus Most of the time, when I open Telegram after a few hours, I see this error (response hash mismatch)

After connecting to a proxy with the official source or Erlang that error is cleared and I can connect to python proxy

Also, my friends with Telegram X have the same problem with different phones and ISPs

someoneIG avatar Jun 02 '20 17:06 someoneIG

could you please try to add IGNORE_TIME_SKEW=True in the end of config.py and restart the proxy. Does the problem persists?

alexbers avatar Jun 04 '20 12:06 alexbers

could you please try to add IGNORE_TIME_SKEW=True in the end of config.py and restart the proxy. Does the problem persists?

I tested it and it works this "TIME_SKEW" does it effect on filtering?

MAHDITX avatar Jun 04 '20 16:06 MAHDITX

some clients on telegram X are trying to reach the proxy with the bad time. This is detected as a replay-attack to detect the proxy. The IGNORE_TIME_SKEW=False disables this protection

alexbers avatar Jun 05 '20 12:06 alexbers

The IGNORE_TIME_SKEW=False disables this protection

Actually =True in this case disables the protection. I think you misspelled :-)

skipik avatar Jun 08 '20 19:06 skipik

Yes, you are right

alexbers avatar Jun 09 '20 09:06 alexbers