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

[BUG]: Unable to authenticate #146

Open
krlspj opened this issue Sep 14, 2023 · 8 comments
Open

[BUG]: Unable to authenticate #146

krlspj opened this issue Sep 14, 2023 · 8 comments
Labels
bug Something isn't working

Comments

@krlspj
Copy link

krlspj commented Sep 14, 2023

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
@krlspj krlspj added the bug Something isn't working label Sep 14, 2023
@krlspj krlspj changed the title [BUG]: [BUG]: Unable to authenticate Sep 14, 2023
@Robtzz
Copy link

Robtzz commented Nov 17, 2023

me too

@TNT-ma
Copy link

TNT-ma commented Apr 2, 2024

Is there a solution to the same problem

@quenbyako
Copy link
Member

@krlspj @Robtzz @TNT-ma sorry for quite late response, could any of you please try pre-release v2.0 version of this library?

@TNT-ma
Copy link

TNT-ma commented Apr 2, 2024

@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/ mtproto@v2.0.0-rc.2
Why not

@RoseLoverX
Copy link

Is there a solution to the same problem

GoGram

@TNT-ma
Copy link

TNT-ma commented Apr 3, 2024

Is there a solution to the same problem

GoGram
Can your library be used normally?

@AmarnathCJD
Copy link

Is there a solution to the same problem

GoGram
Can your library be used normally?

Yeah

@quenbyako
Copy link
Member

@TNT-ma

Is there a solution to the same problem

GoGram

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 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants