Failed to launch browser process

I've gotten this error, but only when hosting it. Running the command locally works perfectly fine. Any tips minus reading their github?
7 Replies
Percy
Percy2y ago
Project ID: N/A
Percy
Percy2y ago
It could be due to running as root without the --no-sandbox option, or it could be due to not being able to move to a new namespace. Troubleshooting can be found at https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md.
⚠️ experimental feature
Castle
CastleOP2y ago
Idk what to even change. All my code works locally so I'm assuming it's the node modules within the host as I'm not uploading them.
Brody
Brody2y ago
you should never need to upload the node_modules but this can easily be fixed by adding the --no-sandbox argument like the error suggests
puppeteer.launch({ args: ['--no-sandbox'] });
puppeteer.launch({ args: ['--no-sandbox'] });
Castle
CastleOP2y ago
Where would I be adding this to? Since it's not local I can't control what node_modules Railway uses. Or can I? I tried adding it to my ready file (launches this file when we first kick the bot online) and it comes with an error stating "install" wasn't defined. Then it's just a rabbit hole.
Brody
Brody2y ago
read their github?
Castle
CastleOP2y ago
I'm on v16, so this doesn't apply even tho it's the same error. Th rest of the Git is useless to me
Want results from more Discord servers?
Add your server