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

抓取报错 #126

Open
shenyou666 opened this issue Nov 5, 2024 · 8 comments
Open

抓取报错 #126

shenyou666 opened this issue Nov 5, 2024 · 8 comments
Labels
Type: Bug Something isn't working

Comments

@shenyou666
Copy link

reject(new FetchError(request to ${request.url} failed, reason: ${err.message}, 'system', err));
[0] ^
[0] FetchError: request to https://raw.githubusercontent.com/ghostery/adblocker/master/packages/adblocker/assets/easylist/easyprivacy.txt failed, reason: Hostname/IP does not match certificate's altnames: Host: raw.githubusercontent.com. is not in the cert's altnames: DNS:default.ssl.fastly.net, DNS:.hosts.fastly.net, DNS:.fastly.com
[0] at ClientRequest. (E:\code_project\ftx\maxun\node_modules\node-fetch\lib\index.js:1501:11)

@amhsirak amhsirak added the Type: Bug Something isn't working label Nov 5, 2024
@tanzhiquan
Copy link

Has it been fixed?

@tanzhiquan
Copy link

tanzhiquan commented Nov 21, 2024

backend-1 | Context from initialize: {"_type":"BrowserContext","_guid":"browser-context@a2452bfe212c761fbf8a61962a56dbd9"}
backend-1 | CPage from initialize: {"_type":"Page","_guid":"page@52d9ebd37170dc3edab781f81d78aa7e"}
backend-1 | /app/node_modules/node-fetch/lib/index.js:1501
backend-1 | reject(new FetchError(request to ${request.url} failed, reason: ${err.message}, 'system', err));
backend-1 | ^
backend-1 | FetchError: request to https://raw.githubusercontent.com/ghostery/adblocker/master/packages/adblocker/assets/peter-lowe/serverlist.txt failed, reason: connect ECONNREFUSED 0.0.0.0:443
backend-1 | at ClientRequest. (/app/node_modules/node-fetch/lib/index.js:1501:11)
backend-1 | at ClientRequest.emit (node:events:514:28)
backend-1 | at ClientRequest.emit (node:domain:488:12)
backend-1 | at TLSSocket.socketErrorListener (node:_http_client:495:9)
backend-1 | at TLSSocket.emit (node:events:514:28)
backend-1 | at TLSSocket.emit (node:domain:488:12)
backend-1 | at emitErrorNT (node:internal/streams/destroy:151:8)
backend-1 | at emitErrorCloseNT (node:internal/streams/destroy:116:3)
backend-1 | at processTicksAndRejections (node:internal/process/task_queues:82:21) {
backend-1 | type: 'system',
backend-1 | errno: 'ECONNREFUSED',
backend-1 | code: 'ECONNREFUSED'
backend-1 | }
backend-1 | [nodemon] app crashed - waiting for file changes before starting...

@amhsirak
Copy link
Member

@tanzhiquan @shenyou666 finding it hard to reproduce. As a hot fix, I'll remove this plugin. New release will be in a few hours.

@jerry-f
Copy link

jerry-f commented Nov 23, 2024

[0] Node.js v18.20.3
[0] Worker exited with code: 1
[0] Database connected successfully
[0] Database synced successfully!
[0] 2024-11-23T03:52:59.564Z info: Server listening on port 8080
[0] MinIO connected successfully.
[0] 2024-11-23T03:52:59.856Z warn: No active browser in the pool
[0] 2024-11-23T03:52:59.859Z warn: No active browser in the pool
[0] 2024-11-23T03:53:31.840Z warn: No active browser in the pool
[0] 2024-11-23T03:53:31.844Z warn: No active browser in the pool
[0] 2024-11-23T03:53:31.867Z warn: No active browser in the pool
[0] (node:468876) DeprecationWarning: uuidv4() is deprecated. Use v4() from the uuid module instead.
[0] (Use node --trace-deprecation ... to show where the warning was created)
[0] 2024-11-23T03:53:32.187Z info: Client connected mmwvmTFnyNDSCVwFAAAB
[0] 2024-11-23T03:53:32.187Z warn: No active browser in the pool
[0] /home/fs/pro/pro-list/maxun/node_modules/cross-fetch/node_modules/node-fetch/lib/index.js:1501
[0] reject(new FetchError(request to ${request.url} failed, reason: ${err.message}, 'system', err));
[0] ^
[0] FetchError: request to https://raw.githubusercontent.com/ghostery/adblocker/master/packages/adblocker/assets/easylist/easylist.txt failed, reason: connect ECONNREFUSED 0.0.0.0:443
[0] at ClientRequest. (/home/fs/pro/pro-list/maxun/node_modules/cross-fetch/node_modules/node-fetch/lib/index.js:1501:11)
[0] at ClientRequest.emit (node:events:517:28)
[0] at ClientRequest.emit (node:domain:489:12)
[0] at TLSSocket.socketErrorListener (node:_http_client:501:9)
[0] at TLSSocket.emit (node:events:517:28)
[0] at TLSSocket.emit (node:domain:489:12)
[0] at emitErrorNT (node:internal/streams/destroy:151:8)
[0] at emitErrorCloseNT (node:internal/streams/destroy:116:3)
[0] at processTicksAndRejections (node:internal/process/task_queues:82:21) {
[0] type: 'system',
[0] errno: 'ECONNREFUSED',
[0] code: 'ECONNREFUSED'
[0] }
[0] [nodemon] app crashed - waiting for file changes before starting...


[Start Training Robot ] error info

@jerry-f
Copy link

jerry-f commented Nov 23, 2024

[0] Node.js v18.20.3[0] Worker 退出,代码为 1[0] 已成功连接数据库[0] 数据库已成功同步![0] 2024-11-23T03:52:59.564Z 信息:服务器侦听端口 8080[0] MinIO 连接成功。[0] 2024-11-23T03:52:59.856Z 警告:池中没有活动的浏览器[0] 2024-11-23T03:52:59.859Z 警告:池中没有活动的浏览器[0] 2024-11-23T03:53:31.840Z 警告:池中没有活动的浏览器[0] 2024-11-23T03:53:31.844Z 警告:池中没有活动的浏览器[0] 2024-11-23T03:53:31.867Z 警告:池中没有活动浏览器[0] (node:468876) DeprecationWarning: uuidv4() 已弃用。请改用 uuid 模块中的 v4()。[0](使用节点 --trace-deprecation ... 显示警告的创建位置)[0] 2024-11-23T03:53:32.187Z 信息:客户端已连接 mmwvmTFnyNDSCVwFAAAB[0] 2024-11-23T03:53:32.187Z 警告:池中没有活动的浏览器[0] /首页/fs/pro/pro-list/maxun/node_modules/cross-fetch/node_modules/node-fetch/lib/index.js:1501[0] 拒绝(new FetchError( request to ${request.url} failed, reason: ${err.message} , 'system', err)); [0] ^[0] FetchError:请求 https://raw.githubusercontent.com/ghostery/adblocker/master/packages/adblocker/assets/easylist/easylist.txt 失败,原因:连接 ECONNREFUSED 0.0.0.0:443[0] 在 ClientRequest 上。(/home/fs/pro/pro-list/maxun/node_modules/cross-fetch/node_modules/node-fetch/lib/index.js:1501:11)[0] 在 ClientRequest.emit (node:events:517:28)[0] 在 ClientRequest.emit (node:domain:489:12)[0] 在 TLSSocket.socketErrorListener (node:_http_client:501:9)[0] 在 TLSSocket.emit (node:events:517:28)[0] 在 TLSSocket.emit (node:domain:489:12)[0] 在 emitErrorNT (node:internal/streams/destroy:151:8)[0] 在 emitErrorCloseNT (node:internal/streams/destroy:116:3)[0] 在 processTicksAndRejections (node:internal/process/task_queues:82:21) {[0] 类型: 'system',[0] errno: 'ECONNREFUSED',[0] 代码: 'ECONNREFUSED' [0] }[0] [nodemon] 应用程序崩溃 - 在启动之前等待文件更改...

[启动训练机器人] 错误信息

version is v0.0.2

@amhsirak
Copy link
Member

@jerry-f @tanzhiquan @shenyou666 are any of you behind a firewall?

I am finding it hard to reproduce this.

If you can share more about your setup it would be very helpful

@Ycituss
Copy link

Ycituss commented Nov 23, 2024

@amhsirak I ran into the same problem, I think it may be that we are in China, blocked by the Great firewall, and do not have direct access to GitHub

@Ycituss
Copy link

Ycituss commented Nov 23, 2024

I found a solution. I changed my host file, allows me to visit raw.githubusercontent.com via IP directly rather than through a DNS lookup, problem is solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants