Skip to content

抓取请求过程中有js报错 #47

@wangxu6868

Description

@wangxu6868

Error: ENOENT: no such file or directory, open 'C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\src\proxy-server\src\components\global-assign-hook-component\core\hook.js'
at Object.openSync (node:fs:582:18)
at Object.readFileSync (node:fs:461:35)
at loadPluginsAsString (C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\src\components\global-assign-hook-component\core\plugins-manager.js:41:27)
at loadPluginsAsStringWithCache (C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\src\components\global-assign-hook-component\core\plugins-manager.js:22:33)
at processRealtime (C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\src\components\global-assign-hook-component\core\global-assign-hook-component-main.js:195:36)
at processJavaScriptResponse (C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\src\components\global-assign-hook-component\core\global-assign-hook-component-main.js:167:9)
at Object.process (C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\src\components\global-assign-hook-component\core\global-assign-hook-component-main.js:54:13)
at Object.beforeSendResponse (C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\src\proxy-server\rules.js:6:35)
at beforeSendResponse.next ()
at onFulfilled (C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\node_modules\co\index.js:65:19)
at C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\node_modules\co\index.js:54:5
at new Promise ()
at co (C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\node_modules\co\index.js:50:10)
at toPromise (C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\node_modules\co\index.js:118:63)
at next (C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\node_modules\co\index.js:99:29)
at onFulfilled (C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\node_modules\co\index.js:69:7)
at C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\node_modules\co\index.js:54:5
at new Promise ()
at co (C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\node_modules\co\index.js:50:10)
at createPromise (C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\node_modules\co\index.js:30:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\src\proxy-server\src\components\global-assign-hook-component\core\hook.js'
}
[AnyProxy Log][2024-05-14 09:25:26]: received request to: POST mon.zijieapi.com/monitor_browser/collect/batch/?biz_id=toutiao_web_pc
[AnyProxy Log][2024-05-14 09:25:26]: received request to: POST mon.zijieapi.com/monitor_browser/collect/batch/?biz_id=toutiao_web_pc
[AnyProxy Log][2024-05-14 09:25:26]: received https CONNECT request mon.zijieapi.com
[AnyProxy Log][2024-05-14 09:25:26]: will forward to local https server
[AnyProxy Log][2024-05-14 09:25:26]: received request to: POST mon.zijieapi.com/monitor_browser/collect/batch/?biz_id=toutiao_web_pc
[AnyProxy Log][2024-05-14 09:25:27]: received https CONNECT request helpdesk.bytedance.com
[AnyProxy Log][2024-05-14 09:25:27]: will forward to local https server
[AnyProxy Log][2024-05-14 09:25:27]: [internal https]proxy server for helpdesk.bytedance.com established
[AnyProxy Log][2024-05-14 09:25:27]: received request to: GET helpdesk.bytedance.com/sites/standalone/helpcenter_pc/?header_toggle=true&extra_persistent_params=%7B%22webId%22:%227368318630956762660%22,%22logId%22:%222024051409252452E2ADD97EB77F3798C1%22,%22url%22:%22https://www.toutiao.com/?wid=1715570387499%22,%22cf_biz_id%22:%2235%22,%22user_agent%22:%22Mozilla/5.0%20(Windows%20NT%2010.0;%20Win64;%20x64)%20AppleWebKit/537.36%20(KHTML,%20like%20Gecko)%20Chrome/124.0.0.0%20Safari/537.36%22%7D&host_app_version=&host_app_model=&channel=undefined&biz_id=35&app_id=24&web_id=7368318630956762660&app_name=toutiao_web&render_width=408&render_height=570&is_in_frame=1&theme=light&from=https://www.toutiao.com/?wid=1715570387499
[AnyProxy Log][2024-05-14 09:25:27]: received request to: POST mon.zijieapi.com/monitor_browser/collect/batch/?biz_id=toutiao_web_pc
[AnyProxy Log][2024-05-14 09:25:28]: received request to: GET www.toutiao.com/sw.js
Error: ENOENT: no such file or directory, open 'C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\src\proxy-server\src\components\global-assign-hook-component\core\hook.js'
at Object.openSync (node:fs:582:18)
at Object.readFileSync (node:fs:461:35)
at loadPluginsAsString (C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\src\components\global-assign-hook-component\core\plugins-manager.js:41:27)
at loadPluginsAsStringWithCache (C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\src\components\global-assign-hook-component\core\plugins-manager.js:22:33)
at processRealtime (C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\src\components\global-assign-hook-component\core\global-assign-hook-component-main.js:195:36)
at processJavaScriptResponse (C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\src\components\global-assign-hook-component\core\global-assign-hook-component-main.js:163:9)
at Object.process (C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\src\components\global-assign-hook-component\core\global-assign-hook-component-main.js:54:13)
at Object.beforeSendResponse (C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\src\proxy-server\rules.js:6:35)
at beforeSendResponse.next ()
at onFulfilled (C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\node_modules\co\index.js:65:19)
at C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\node_modules\co\index.js:54:5
at new Promise ()
at co (C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\node_modules\co\index.js:50:10)
at toPromise (C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\node_modules\co\index.js:118:63)
at next (C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\node_modules\co\index.js:99:29)
at onFulfilled (C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\node_modules\co\index.js:69:7)
at C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\node_modules\co\index.js:54:5
at new Promise ()
at co (C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\node_modules\co\index.js:50:10)
at createPromise (C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\node_modules\co\index.js:30:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'C:\Users\王旭\Desktop\frontEndTools\ast-hook-for-js-RE\src\proxy-server\src\components\global-assign-hook-component\core\hook.js'
}

加载网站js时, 发现了两条类似报错

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions