mtproto
mtproto copied to clipboard
[BUG]: Unable to authenticate
Description
I'm running the auth example without success, I would much appreciate you help to make it work again.
this is the thrown panic:
panic: sending AuthSendCode: recreating connection: can't connect: setup connection: dialing tcp: dial tcp [2001:67c:4e8:f004::b]:443: connect: network is unreachable
Failed snippet
here is the code I'm trying to run
Expected behavior
I should recieve the authorizer code in the telegram app to complete the authtentication process
Additional context
Im pointing to the lastest commit: github.com/xelaj/mtproto v1.0.1-0.20210324062241-216789b95a5d the error im getting is:
&errors.withStack{
error: &errors.withMessage{
cause: &errors.withStack{
error: &errors.withMessage{
cause: &errors.withStack{
error: &errors.withMessage{
cause: &errors.withStack{
error: &errors.withMessage{
cause: &errors.withStack{
error: &errors.withMessage{
cause: &net.OpError{
Op: "dial",
Net: "tcp",
Source: nil,
Addr: &net.TCPAddr{
IP: net.IP{
0x20, 0x01, 0x06, 0x7c, 0x04, 0xe8, 0xf0, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0b,
},
Port: 443,
Zone: "",
},
Err: &os.SyscallError{
Syscall: "connect",
Err: 0x65,
},
},
msg: "dialing tcp",
},
stack: &errors.stack{
0x677325,
0x67776d,
0x67a18c,
0x67a046,
0x67a487,
0x67b72b,
0x67a2d7,
0x69677a,
0x6966d8,
0x6a952b,
0x6a914f,
0x43999b,
0x4686c1,
},
},
msg: "setup connection",
},
stack: &errors.stack{
0x677879,
0x67a18c,
0x67a046,
0x67a487,
0x67b72b,
0x67a2d7,
0x69677a,
0x6966d8,
0x6a952b,
0x6a914f,
0x43999b,
0x4686c1,
},
},
msg: "can't connect",
},
stack: &errors.stack{
0x67a1d2,
0x67a046,
0x67a487,
0x67b72b,
0x67a2d7,
0x69677a,
0x6966d8,
0x6a952b,
0x6a914f,
0x43999b,
0x4686c1,
},
},
msg: "recreating connection",
},
stack: &errors.stack{
0x67a498,
0x67b72b,
0x67a2d7,
0x69677a,
0x6966d8,
0x6a952b,
0x6a914f,
0x43999b,
0x4686c1,
},
},
msg: "sending AuthSendCode",
},
stack: &errors.stack{
0x6967af,
0x6a952b,
0x6a914f,
0x43999b,
0x4686c1,
},
}
panic: sending AuthSendCode: recreating connection: can't connect: setup connection: dialing tcp: dial tcp [2001:67c:4e8:f004::b]:443: connect: network is unreachable
me too
Is there a solution to the same problem
@krlspj @Robtzz @TNT-ma sorry for quite late response, could any of you please try pre-release v2.0 version of this library?
@krlspj @Robtzz @TNT-ma sorry for quite late response, could any of you please try pre-release v2.0 version of this library?
How to update to this version? Go get github. com/xelaj/ [email protected] Why not
Is there a solution to the same problem
GoGram Can your library be used normally?
@TNT-ma
Is there a solution to the same problem
Can your library be used normally?
Can confirm: gogram works also, it's a better fork of mtproto.v1, so why not to try it
Still, maybe v2 is stable enough for you, feel free to try it 😊