JUN-SUZU / KOKONE

MIT License
0 stars 0 forks source link

Miniget AudioPlayerError 403 #1

Closed JUN-SUZU closed 2 months ago

JUN-SUZU commented 3 months ago

Error was happened. How can I solve this problem? ; ; This error seems to occur when waiting to play await entersState.....

    at ClientRequest.<anonymous> (/home/user/projects/KOKONE/node_modules/miniget/dist/index.js:206:27)
    at Object.onceWrapper (node:events:635:26)
    at ClientRequest.emit (node:events:520:28)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:700:27)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
    at TLSSocket.socketOnData (node:_http_client:542:22)
    at TLSSocket.emit (node:events:520:28)
    at addChunk (node:internal/streams/readable:559:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
    at Readable.push (node:internal/streams/readable:390:5) {
  resource: AudioResource {
    playStream: Encoder {
      _events: [Object],
      _readableState: [ReadableState],
      _writableState: [WritableState],
      allowHalfOpen: true,
      _maxListeners: undefined,
      _eventsCount: 6,
      encoder: null,
      _options: [Object],
      _required: 3840,
      _buffer: null,
      [Symbol(shapeMode)]: true,
      [Symbol(kCapture)]: false,
      [Symbol(kCallback)]: null
    },
    edges: [ [Object], [Object], [Object] ],
    metadata: null,
    volume: VolumeTransformer {
      _events: [Object],
      _readableState: [ReadableState],
      _writableState: [WritableState],
      allowHalfOpen: true,
      _maxListeners: undefined,
      _eventsCount: 5,
      _readInt: [Function (anonymous)],
      _writeInt: [Function (anonymous)],
      _bits: 16,
      _bytes: 2,
      _extremum: 32768,
      volume: 1,
      _chunk: null,
      [Symbol(shapeMode)]: true,
      [Symbol(kCapture)]: false,
      [Symbol(kCallback)]: null
    },
    encoder: Encoder {
      _events: [Object],
      _readableState: [ReadableState],
      _writableState: [WritableState],
      allowHalfOpen: true,
      _maxListeners: undefined,
      _eventsCount: 6,
      encoder: null,
      _options: [Object],
      _required: 3840,
      _buffer: null,
      [Symbol(shapeMode)]: true,
      [Symbol(kCapture)]: false,
      [Symbol(kCallback)]: null
    },
    audioPlayer: undefined,
    playbackDuration: 0,
    started: false,
    silencePaddingFrames: 5,
    silenceRemaining: -1
  }
}
JUN-SUZU commented 2 months ago

fixed with https://github.com/JUN-SUZU/KOKONE/commit/ea400936c245d4b2f34869d5dd1b0e3f16ac71ec