failed to connect: empty packet: nil nil