Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

当我执行npm run start时报错 #19

@bainningking

Description

@bainningking

日志信息如下:
Starting chatgpt with config: {
"email": "[email protected]",
"password": "xxxxx",
"sessionToken": "",
"reverseProxyUrl": "https://chat.y1s1.host/completions",
"isProAccount": false,
"markdown": false,
"debug": false,
"isGoogleLogin": false,
"isMicrosoftLogin": false,
"minimize": false,
"proxyServer": "http://127.0.0.1:7890"
}
Starting chatgpt failed, retrying...
Error: Failed to launch the browser process!
[1471:1490:0215/023119.348070:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[1471:1471:0215/023119.358143:ERROR:ozone_platform_x11.cc(238)] Missing X server or $DISPLAY
[1471:1471:0215/023119.358186:ERROR:env.cc(255)] The platform failed to initialize. Exiting.

TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

at onClose (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js:299:20)
at ChildProcess.<anonymous> (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js:290:24)
at ChildProcess.emit (node:events:524:35)
at ChildProcess._handle.onexit (node:internal/child_process:293:12)

排查过程:我以为是代理问题,增加配置后仍是此报错

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