Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

The "offset" argument must be of type number. Received type string #19

Open
skarl-api opened this issue Nov 14, 2019 · 3 comments · May be fixed by #23
Open

The "offset" argument must be of type number. Received type string #19

skarl-api opened this issue Nov 14, 2019 · 3 comments · May be fixed by #23

Comments

@skarl-api
Copy link

(node:19546) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
Listening on port 1127
TypeError [ERR_INVALID_ARG_TYPE]: The "offset" argument must be of type number. Received type string

@penjiu
Copy link

penjiu commented Dec 17, 2019

I see the same error on the server side when posting dump file, have you figured it out ?

Thanks.

1 similar comment
@Maru-z
Copy link

Maru-z commented Mar 12, 2020

I see the same error on the server side when posting dump file, have you figured it out ?

Thanks.

@elvisvoer elvisvoer linked a pull request Apr 27, 2020 that will close this issue
@lykiao
Copy link

lykiao commented May 12, 2022

add "os.tmpDir = os.tmpdir;" line in node_module/temp/lib/temp.js 's 6th line, like this:
`var fs = require('fs'),
os = require('os'),
path = require('path'),
cnst = require('constants');

os.tmpDir = os.tmpdir;
/* HELPERS */`

but i got error below when click uploaded dump file in server, can anyone help me?
Error
at ChildProcess. (D:\xxxx\mini-breakpad-server\node_modules\minidump\lib\minidump.js:41:25)
at ChildProcess.emit (events.js:400:28)
at maybeClose (internal/child_process.js:1058:16)
_at Process.ChildProcess.handle.onexit (internal/child_process.js:293:5)

thank you~~

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

Successfully merging a pull request may close this issue.

4 participants