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 "file" argument must be of type string. Received type object #108

Open
fangx4 opened this issue Sep 28, 2020 · 0 comments

Comments

@fangx4
Copy link

fangx4 commented Sep 28, 2020

wget http://127.0.0.1:8891/?url=github.com -O github.png

--2020-09-28 15:04:32-- http://127.0.0.1:8891/?url=github.com
Connecting to 127.0.0.1:8891... connected.
HTTP request sent, awaiting response... 2020-09-28T07:04:32.288Z - info: Capture site screenshot: "github.com"
2020-09-28T07:04:32.745Z - error: Process error: internal/validators.js:125
throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
^

TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received type object
at validateString (internal/validators.js:125:11)
at normalizeSpawnArguments (child_process.js:411:3)
at spawn (child_process.js:545:16)
at Object. (/usr/local/lib/node_modules/phantomjs/bin/phantomjs:22:10)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)

2020-09-28T07:04:32.745Z - error: error=Can not capture: github.com
500 Internal Server Error
2020-09-28 15:04:32 ERROR 500: Internal Server Error.

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

No branches or pull requests

1 participant