You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use the example from the README but it doesn't work.
My first error is:
/tmp/node_modules/node-tcp-proxy/tcp-proxy.js:21
throw new Error("cannot parse object: " + o);
^
Error: cannot parse object: 10080
at parse (/tmp/node_modules/node-tcp-proxy/tcp-proxy.js:21:15)
at new TcpProxy (/tmp/node_modules/node-tcp-proxy/tcp-proxy.js:28:25)
at Object.module.exports.createProxy (/tmp/node_modules/node-tcp-proxy/tcp-proxy.js:7:12)
at Object.<anonymous> (/tmp/test.js:2:22)
at Module._compile (internal/modules/cjs/loader.js:1151:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1171:10)
at Module.load (internal/modules/cjs/loader.js:1000:32)
at Function.Module._load (internal/modules/cjs/loader.js:899:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47
internal/fs/utils.js:534
throw new ERR_INVALID_ARG_TYPE(propName, ['string', 'Buffer', 'URL'], path);
^
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined
at Object.openSync (fs.js:449:10)
at Object.readFileSync (fs.js:359:35)
at new TcpProxy (/tmp/node_modules/node-tcp-proxy/tcp-proxy.js:40:39)
at Object.module.exports.createProxy (/tmp/node_modules/node-tcp-proxy/tcp-proxy.js:7:12)
at Object.<anonymous> (/tmp/test.js:2:22)
at Module._compile (internal/modules/cjs/loader.js:1151:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1171:10)
at Module.load (internal/modules/cjs/loader.js:1000:32)
at Function.Module._load (internal/modules/cjs/loader.js:899:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) {
code: 'ERR_INVALID_ARG_TYPE'
}
The text was updated successfully, but these errors were encountered:
NodeJS version: v13.8.0
I'm trying to use the example from the README but it doesn't work.
My first error is:
Then I change the port
10080
to a string:After that I get a second error:
The text was updated successfully, but these errors were encountered: