#bot playing no audio

1 messages · Page 1 of 1 (latest)

median blaze
#

Hello Guys i use py-cord a python libiry for coding bots
i have code a basic Music System for me bot using pip lavalink==5.1.0
the bot Find the Track but dont playing the audio

application.yml

lavalink:
    plugins: null
    server:
        bufferDurationMs: 400
        filters:
            channelMix: true
            distortion: true
            equalizer: true
            karaoke: true
            lowPass: true
            rotation: true
            timescale: true
            tremolo: true
            vibrato: true
            volume: true
        frameBufferDurationMs: 5000
        gc-warnings: true
        nonAllocatingFrameBuffer: false
        opusEncodingQuality: 10
        password: youshallnotpass
        playerUpdateInterval: 5
        resamplingQuality: LOW
        soundcloudSearchEnabled: true
        sources:
            bandcamp: true
            http: true
            local: false
            nico: true
            soundcloud: true
            twitch: true
            vimeo: true
            youtube: false
        trackStuckThresholdMs: 10000
        useSeekGhosting: true
        youtubePlaylistLoadLimit: 6
        youtubeSearchEnabled: true
logging:
    file:
        path: ./logs/
    level:
        lavalink: INFO
        root: INFO
    logback:
        rollingpolicy:
            max-file-size: 1GB
            max-history: 30
    request:
        enabled: true
        includeClientInfo: true
        includeHeaders: false
        includePayload: true
        includeQueryString: true
        maxPayloadLength: 10000
metrics:
    prometheus:
        enabled: false
        endpoint: /metrics
plugins: null
sentry:
    dsn: ""
    environment: ""
server:
    address: 0.0.0.0
    http2:
        enabled: false
    port: 34233
warm scarabBOT
#

Hey @median blaze,

Please make sure to read and follow the post guidelines before opening your post.
This will help you get the best possible answers to your questions while minimizing the questions we have to ask you.
Thanks!

shy condor
#
lavalink.server.io.SocketServer          : Connection closed from /176.198.185.12:52091 with id eydm2onj0l86t4pq -- CloseStatus[code=1006, reason=]
median blaze
#

?

shy condor
#

This happens every time you play a track

median blaze
#

oh okay why is this?

shy condor
#

A WebSocket close code 1006 indicates that the connection was closed abnormally,

median blaze
#

how to fix?

gaunt pumice
median blaze
gaunt pumice
#

i mean "ask your client devs"

median blaze
gaunt pumice
#

#py_lavalink-py go here and ask him

shy condor
floral token
#

you never tell lavalink the voice server to connect to

#

so it never connects

#

and then your websocket dies with close code 1006

#

and kills the player

#

as others have said, ask your libs devs how to do that stuff and potentially either fix your network or use resuming