Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I fix this error? #9

Open
KobyButler opened this issue Mar 29, 2023 · 0 comments
Open

How do I fix this error? #9

KobyButler opened this issue Mar 29, 2023 · 0 comments
Labels
question Further information is requested

Comments

@KobyButler
Copy link

C:\Users\kobyb\steam-bot>npm start

[email protected] start
node ./bot

connecting to steam account...
node:internal/fs/utils:901
throw new ERR_INVALID_ARG_TYPE(
^

TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received type number (11)
at Object.writeFile (node:fs:2196:5)
at FileStorage.saveFile.FileStorage.writeFile (C:\Users\kobyb\steam-bot\node_modules\file-manager\index.js:68:5)
at SteamUser._handlers. (C:\Users\kobyb\steam-bot\node_modules\steam-user\components\logon.js:294:18)
at SteamUser._handleMessage (C:\Users\kobyb\steam-bot\node_modules\steam-user\components\messages.js:249:30)
at CMClient.emit (node:events:513:28)
at CMClient._netMsgReceived (C:\Users\kobyb\steam-bot\node_modules\steam-client\lib\cm_client.js:323:8)
at handlers. (C:\Users\kobyb\steam-bot\node_modules\steam-client\lib\cm_client.js:609:8)
at CMClient._netMsgReceived (C:\Users\kobyb\steam-bot\node_modules\steam-client\lib\cm_client.js:305:24)
at TCPConnection.emit (node:events:513:28)
at TCPConnection._readPacket (C:\Users\kobyb\steam-bot\node_modules\steam-client\lib\tcp_connection.js:183:7) {
code: 'ERR_INVALID_ARG_TYPE'
}

Node.js v18.15.0

@prasunroy prasunroy added the question Further information is requested label Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants