Apify Discord Mirror

Updated 5 months ago

how to run headful on the platform?

At a glance
The community member is experiencing issues with launching a browser process using Puppeteer. The errors indicate problems with connecting to the D-Bus system bus, missing X server or $DISPLAY, and the platform failing to initialize. The community member has provided the code they were running when the errors occurred. There are no comments from other community members.
Plain Text
Failed to launch the browser process! undefined
2023-09-01T21:35:32.962Z [141:164:0901/213532.948704: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
2023-09-01T21:35:32.964Z [141:141:0901/213532.952831:ERROR:ozone_platform_x11.cc(240)] Missing X server or $DISPLAY
2023-09-01T21:35:32.966Z [141:141:0901/213532.952846:ERROR:env.cc(255)] The platform failed to initialize.  Exiting.


I got this error on the platform when trying to run this code:

Plain Text
const browser = await launchPuppeteer({
        useChrome: true,
        
        // Native Puppeteer options
        launchOptions: {
            headless: false,
         }});
Add a reply
Sign up and join the conversation on Discord