alik0211 / mtproto-core

Telegram API JS (MTProto) client library for Node.js and browser
https://mtproto-core.js.org
GNU General Public License v3.0
633 stars 118 forks source link

Transport error: { type: 'socket' } #200

Closed reflash closed 3 months ago

reflash commented 3 years ago

Describe the bug Running with 5.3.0 version - getting the error:

Transport error: { type: 'socket' }

This code has worked previously, so not sure what's the issue now

Code example

await this.mtProtoClient.call('auth.importBotAuthorization', {
    bot_auth_token: token,
})

Expected behavior Call is finished successfully

Context:

joeberetta commented 3 years ago

@reflash do you have any progress with it? Some time ago tried to use it for PoW and got same error, but hadn't time to check where's the real problem

reflash commented 3 months ago

@reflash do you have any progress with it? Some time ago tried to use it for PoW and got same error, but hadn't time to check where's the real problem

I think I haven't found any solution to that and I can't really reproduce the same condition atm