tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

"Request is empty" on authorization in Ubuntu #2837

Closed mp024 closed 7 months ago

mp024 commented 7 months ago

Hi! I have quite strange issue when running tdlib in Ubuntu 22 when authorizing an account:

Error { code = 400 message = "Request is empty" }

This happens next to SetTdlibParameters request. Could you please give a clue how to fix that?

levlam commented 7 months ago

The error can be returned only if you pass null instead of a function to send or execute.

hui87667137 commented 6 months ago
image

May I ask if you have solved this problem? I also encountered the same problem. The same code is normal in Mac, but this problem occurred in Linux. The printed request is null

@mp024 @levlam

mp024 commented 6 months ago

@hui87667137 it turned out that tdlib version was slightly different in different environments. After aligning tdlib versions the problem was resolved.

hui87667137 commented 6 months ago

thanks