Skip to content

[BUG]: Unable to authenticateΒ #146

@krlspj

Description

@krlspj

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions