My Command:- node run-scrapper.js -d sarkariresult.com -f json -o output.json
The error I am getting:-
----- null error occured!
TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received null
at new NodeError (internal/errors.js:322:7)
at validateString (internal/validators.js:124:11)
at Url.parse (url.js:171:3)
at Object.urlParse [as parse] (url.js:158:13)
at dispatchHttpRequest (/Users/keshavsharma/Desktop/sarkari-scraper/node_modules/axios/lib/adapters/http.js:67:22)
at new Promise ()
at httpAdapter (/Users/keshavsharma/Desktop/sarkari-scraper/node_modules/axios/lib/adapters/http.js:20:10)
at dispatchRequest (/Users/keshavsharma/Desktop/sarkari-scraper/node_modules/axios/lib/core/dispatchRequest.js:59:10)
at processTicksAndRejections (internal/process/task_queues.js:95:5) {
code: 'ERR_INVALID_ARG_TYPE'