airgram / airgram-js-example

Basic usage Airgram with JavaScript
GNU General Public License v3.0
13 stars 7 forks source link

Error even while trying to initialize Airgram #14

Open syedareehaquasar opened 2 years ago

syedareehaquasar commented 2 years ago
          ^

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

Same error here...

image

NeetishRaj commented 2 years ago

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 commented 1 year ago

It works for me when i change airgram version 5.0.0