rannmann / node-steam-trade-tutorial

from the article: Creating a Steam Trade Bot with Node.js
MIT License
19 stars 9 forks source link

Illegal Buffer? #1

Closed Supergovs closed 9 years ago

Supergovs commented 9 years ago

C:\Users\USER\Downloads\USER\Node.js Steam TradeBot>node core.js C:\Users\USER\Downloads\USER\Node.js Steam TradeBot\node_modules\steam\node_mo dules\bytebuffer\dist\ByteBufferNB.js:322 throw TypeError("Illegal buffer"); ^ TypeError: Illegal buffer at TypeError (native) at Function.module.exports.ByteBuffer.wrap (C:\Users\VILNIS\Downloads\Miks\N ode.js Steam TradeBot\node_modules\steam\node_modules\bytebuffer\dist\ByteBuffer NB.js:322:19) at ProtoBuf.Reflect.FieldPrototype.verifyValue (C:\Users\VILNIS\Downloads\Mi ks\Node.js Steam TradeBot\node_modules\steam\node_modules\protobufjs\dist\ProtoB uf.js:2728:43) at MessagePrototype.set (C:\Users\VILNIS\Downloads\Miks\Node.js Steam TradeB ot\node_modules\steam\node_modules\protobufjs\dist\ProtoBuf.js:1799:63) at Message (C:\Users\VILNIS\Downloads\Miks\Node.js Steam TradeBot\node_modul es\steam\node_modules\protobufjs\dist\ProtoBuf.js:1725:42) at SteamClient.handlers.(anonymous function) (C:\Users\VILNIS\Downloads\Miks \Node.js Steam TradeBot\node_modules\steam\lib\steam_client.js:177:44) at SteamClient._netMsgReceived (C:\Users\VILNIS\Downloads\Miks\Node.js Steam TradeBot\node_modules\steam\lib\steam_client.js:106:26) at Connection.emit (events.js:107:17) at Connection._readPacket (C:\Users\VILNIS\Downloads\Miks\Node.js Steam Trad eBot\node_modules\steam\lib\connection.js:50:8) at Connection.emit (events.js:104:17)

rannmann commented 9 years ago

Make sure your node version is up to date (at least 0.12) and try installing from the package.json file that I just uploaded. Use npm install in the bot's directory to automatically pull the dependencies.

rannmann commented 9 years ago

Closed due to inactivity.