Multivit4min / TS3-NodeJS-Library

TeamSpeak 3 Server Query Library supports SSH and RAW Query
https://multivit4min.github.io/TS3-NodeJS-Library/
MIT License
150 stars 19 forks source link

Problem with the sorucecode #29

Closed corusm closed 5 years ago

corusm commented 5 years ago

Describe the bug My bot is running on my local pc running ubuntu and can't connect to the ts3 server. But when I start the same bot on the server where my ts3 server is running everything is woking.

Version

Thx for your help

Output by console:

/home/medienteam/Schreibtisch/Bot/tsbot/node_modules/ts3-nodejs-library/TeamSpeak3.js:88
              .finally(() => {
                      ^

TypeError: this.version(...).then(...).catch(...).finally is not a function
    at TS3Query.TeamSpeak3._ts3.on (/home/medienteam/Schreibtisch/Bot/tsbot/node_modules/ts3-nodejs-library/TeamSpeak3.js:88:23)
    at emitNone (events.js:106:13)
    at TS3Query.emit (events.js:208:7)
    at TS3Query.handleConnect (/home/medienteam/Schreibtisch/Bot/tsbot/node_modules/ts3-nodejs-library/transport/TS3Query.js:75:12)
    at emitNone (events.js:106:13)
    at RAW.emit (events.js:208:7)
    at RAW._handleConnect (/home/medienteam/Schreibtisch/Bot/tsbot/node_modules/ts3-nodejs-library/transport/protocols/raw.js:54:10)
    at emitNone (events.js:111:20)
    at Socket.emit (events.js:208:7)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1173:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! tsbot@1.0.0 start: `node bot.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the tsbot@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/medienteam/.npm/_logs/2018-11-14T09_48_28_421Z-debug.log
Multivit4min commented 5 years ago

what is the output of node -v ?

corusm commented 5 years ago

node version: v8.11.4 npm version: 5.8.0

Multivit4min commented 5 years ago

please dont refer to the term "latest" its not a reliable version number, I noticed that "finally" is only available since node 10.0.0, i will fix that so its compatible with older versions aswell

Multivit4min commented 5 years ago

should be fixed now

corusm commented 5 years ago

nice thx