shipgirlproject / Shoukaku

A stable, powerful and updated wrapper around Lavalink
https://guide.shoukaku.shipgirl.moe/
MIT License
287 stars 86 forks source link

TypeError this.resumable.split is not a function #33

Closed sawa-ko closed 3 years ago

sawa-ko commented 3 years ago
tsc -p tsconfig.json
{
  "shoukaku": "Deivu/Shoukaku#master"
}
 TypeError  this.resumable.split is not a function
error stack:
• ShoukakuSocket.js:248 _open
    node_modules/shoukaku/src/node/ShoukakuSocket.js:248:81

• ShoukakuSocket.js:145 <anonymous>
    node_modules/shoukaku/src/node/ShoukakuSocket.js:145:41

• events.js:421 onceWrapper
    events.js:421:28

• events.js:315 emit
    events.js:315:20

• websocket.js:177 setSocket
    node_modules/ws/lib/websocket.js:177:10

• websocket.js:671 <anonymous>
    node_modules/ws/lib/websocket.js:671:15

• events.js:315 emit
    events.js:315:20

• _http_client.js:547 socketOnData
    _http_client.js:547:11

• events.js:315 emit
    events.js:315:20
Deivu commented 3 years ago

What is your ShoukakuOptions when this issue appeared

sawa-ko commented 3 years ago

What is your ShoukakuOptions when this issue appeared

This is my current shoukaku options

this.shoukakuManager = new Shoukaku(this, config.lavalink.nodes, {
      resumable: true,
      reconnectTries: 5,
      reconnectInterval: 30e3,
      restTimeout: 60e3,
    });
Deivu commented 3 years ago

resumable either takes false|'any-resume-key-you-want' tho next minor release will be boolean wiith backwards compatibility on string based resume-key. Try latest commit

sawa-ko commented 3 years ago

resumable either takes false|'any-resume-key-you-want' tho next minor release will be boolean wiith backwards compatibility on string based resume-key. Try latest commit

Works fine now, thanks