Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it due to a version mismatch or other reasons that tdlib prompts for an update? #3128

Open
adminJSUI opened this issue Nov 3, 2024 · 13 comments

Comments

@adminJSUI
Copy link

I am currently facing a problem and don't know how to solve it: when logging in to the frontend, it prompts that 406 needs to update the software. Is it because my VPN is from Hong Kong or for other reasons? If it is updating TDlib, what version is required? Do we need the latest version of tdlib?
屏幕截图 2024-11-03 193047

@adminJSUI
Copy link
Author

I am using: https://github.com/tdlib/td/tree/master/example/web Is this error caused by tdlib in this version? I have already placed it in the tdweb and public directories

@levlam
Copy link
Contributor

levlam commented Nov 3, 2024

You need to manually build tdweb 1.8.39 using the instructions provided at https://github.com/tdlib/td/tree/master/example/web and use it instead of the outdated tdweb package available through npm.

@adminJSUI
Copy link
Author

An error occurred while installing here
Uploading 23.png…

@adminJSUI
Copy link
Author

24
This manual installation architecture example

@adminJSUI
Copy link
Author

26
25

@adminJSUI
Copy link
Author

May I ask if the installation of this EMSDK has been completed?

@levlam
Copy link
Contributor

levlam commented Nov 3, 2024

Follow the instructions at https://kripken.github.io/emscripten-site/docs/getting_started/downloads.html to install and activate emsdk 3.1.1.

@adminJSUI
Copy link
Author

Has this been activated?
Uploading 27.png…

@adminJSUI
Copy link
Author

Is it enough to activate EMSDK?

@levlam
Copy link
Contributor

levlam commented Nov 3, 2024

./emsdk install 3.1.1
./emsdk activate 3.1.1
source ./emsdk_env.sh

@adminJSUI
Copy link
Author

adminJSUI commented Nov 3, 2024

When activated, this prompt appears: node-20.18.0-64bit
releases-5ee64de9809592480da01372880ea11debd6c740-64bit
Next steps:

  • To conveniently access emsdk tools from the command line,
    consider adding the following directories to your PATH:
    /www/wwwroot/tc.toim.cn/node_modules/tdweb/emsdk
    /www/wwwroot/tc.toim.cn/node_modules/tdweb/emsdk/upstream/emscripten
  • This can be done for the current shell by running:
    source "/www/wwwroot/tc.toim.cn/node_modules/tdweb/emsdk/emsdk_env.sh"
  • Configure emsdk in your shell startup scripts by running:
    echo 'source "/www/wwwroot/tc.toim.cn/node_modules/tdweb/emsdk/emsdk_env.sh"' >> $HOME/.bash_profile

@adminJSUI
Copy link
Author

Do you need to proceed to the next step?

@levlam
Copy link
Contributor

levlam commented Nov 3, 2024

You need to follow all instructions in README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants