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

TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received type number ( #371

Open
SaltySeraphCodes opened this issue Aug 14, 2021 · 1 comment
Labels

Comments

@SaltySeraphCodes
Copy link

SaltySeraphCodes commented Aug 14, 2021

Describe the bug

"TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received type number ({machine ID goes here})" Shows up after a successful log on.
This is coming from ...\steam-user\components\logon.js:294:18
when it attempts to save the machine id:
this.storage.saveFile('cellid-' + Helpers.getInternalMachineID() + '.txt', body.cell_id);
I believe node stopped automatically fixing types in a newer update, a simple fix to this would be to convert body.cell_id to a string. I used toString(body.cell_id) as a duct tape fix, but there may be better or more secure ways to do it. I can submit a pull request if you think this is a valid solution 😄

Versions

Node v16.3.0 and Steam-user 4.19.12

Screenshots and Error Logs

@DoctorMcKay
Copy link
Owner

I think you need to run npm update. That bug should have been fixed a couple years ago in file-manager module version 2.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants