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

Error even while trying to initialize Airgram #14

Open
syedareehaquasar opened this issue Jan 4, 2022 · 5 comments
Open

Error even while trying to initialize Airgram #14

syedareehaquasar opened this issue Jan 4, 2022 · 5 comments

Comments

@syedareehaquasar
Copy link

syedareehaquasar commented Jan 4, 2022

          ^

Error: Dynamic Linking Error: Win32 error 126
    at new DynamicLibrary (E:\SocioCLub\node_modules\ffi-napi\lib\dynamic_library.js:75:11)
    at Object.Library (E:\SocioCLub\node_modules\ffi-napi\lib\library.js:47:10)
    at new TdJsonClient (E:\SocioCLub\node_modules\airgram\components\TdJsonClient.js:86:27)
    at new Airgram (E:\SocioCLub\node_modules\airgram\Airgram.js:50:116)
    at file:///E:/SocioCLub/index.js:41:17
    at ModuleJob.run (internal/modules/esm/module_job.js:169:25)
    at async Loader.import (internal/modules/esm/loader.js:177:24)
    at async Object.loadESM (internal/process/esm_loader.js:68:5)

Tried cloning the repo and running as well and I am getting failure msg

# Fatal error in , line 0
# Check failed: result.second.
#
#
#
#FailureMessage Object: 000000CACAD8AC20

Can someone help me out!

@NeetishRaj
Copy link

Facing the same problem myself

node - v16.14.0
airgram - v5.0.0
OS: Windows 10

Error message:

PS D:\work\TelegramBot\NodejsTelegramClient> node index.js
D:\work\TelegramBot\NodejsTelegramClient\node_modules\ffi-napi\lib\dynamic_library.js:75
    throw new Error('Dynamic Linking Error: ' + err);
    ^

Error: Dynamic Linking Error: Win32 error 126
    at new DynamicLibrary (D:\work\TelegramBot\NodejsTelegramClient\node_modules\ffi-napi\lib\dynamic_library.js:75:11)
    at Object.Library (D:\work\TelegramBot\NodejsTelegramClient\node_modules\ffi-napi\lib\library.js:47:10)    
    at new TdJsonClient (D:\work\TelegramBot\NodejsTelegramClient\node_modules\airgram\components\TdJsonClient.js:112:28)
    at new Airgram (D:\work\TelegramBot\NodejsTelegramClient\node_modules\airgram\Airgram.js:51:116)
    at Object.<anonymous> (D:\work\TelegramBot\NodejsTelegramClient\index.js:11:17)

@syedareehaquasar
Copy link
Author

syedareehaquasar commented Mar 22, 2022

I switched to wsl and tried worked for me you can try shifting to any Linux based environment as well if it's urgent @NeetishRaj

@javierarocena
Copy link

Same error here...

image

@NeetishRaj
Copy link

I switched to wsl and tried worked for me you can try shifting to any Linux based environment as well if it's urgent @NeetishRaj

No luck even in WSL for me. Had to use Python for my use

@lakshmankashyap
Copy link

It works for me when i change airgram version 5.0.0

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

4 participants