Sorry for the beginner question.

I'm making a bot on Discord.py
I get the following error message when connecting to a voice channel

socket.gaierror: [Errno -2] Name or service not known
Corresponding source code
# If i say "/ k join", join the "voice channel"
    if message.content =='/ k join':
      vchannel = message.author.voice.channel
      await vchannel.connect ()

When I run this code, I can connect to the voice channel, but I get an error

Supplementary information

Discord.py 1.4.1
Development environment repl.it