eddie
eddie
RRailway
Created by eddie on 8/28/2024 in #✋|help
browserless (puppeteer) issues
project id: 168b11d7-f1cd-4066-91c0-fd9530f55259 i have a headless puppeteer project and am trying to switch over to browserless (v2) having issues when swapping the code:
//const browser = await puppeteer.launch({ headless: true });
const browser = await puppeteer.connect({ browserWSEndpoint: process.env.BROWSER_WS_ENDPOINT });
//const browser = await puppeteer.launch({ headless: true });
const browser = await puppeteer.connect({ browserWSEndpoint: process.env.BROWSER_WS_ENDPOINT });
received error on the puppeteeer.connect call:
'Unexpected server response: 404'
'Unexpected server response: 404'
confirmed the BROWSER_WS_ENDPOINT is correct (i even copied the wss: directly in case the env vars weren't passing thru)
31 replies
RRailway
Created by eddie on 2/4/2024 in #✋|help
typescript: is railway ignoring tsconfig.json
I am getting these Type errors and am looking to just disable them so they aren't so strict with typescript errors in Railway. Locally i have them set in tsconfig.json (strict:false,etc) to not be to strict and it works locally but on railway deployments it seems to be super strict on these syntax errors
tsconfig.json:

{
"compilerOptions": {
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strictNullChecks":false,
"strictFunctionTypes": false,
"strictPropertyInitialization": false,
"strictBindCallApply": false,

"strict": false,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"noImplicitAny": false,
"noImplicitReturns": false,
"allowJs": true,


"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": [
"./*"
]
},
"strictNullChecks": true
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"
],
"exclude": [
"node_modules"
]
}
tsconfig.json:

{
"compilerOptions": {
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strictNullChecks":false,
"strictFunctionTypes": false,
"strictPropertyInitialization": false,
"strictBindCallApply": false,

"strict": false,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"noImplicitAny": false,
"noImplicitReturns": false,
"allowJs": true,


"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": [
"./*"
]
},
"strictNullChecks": true
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"
],
"exclude": [
"node_modules"
]
}
i am wondering how i can make them more quiet or is railway ignoring this file? Example typescript error message during railway builds: Type error: 'searchParams' is possibly 'null'. project 7bd9394f-6a2f-4a94-b405-cdc7d5edd6c7
2 replies
RRailway
Created by eddie on 1/30/2024 in #✋|help
python not found
#10 19.42 npm ERR! code 1



#10 19.42 npm ERR! path /app/node_modules/ffi-napi

#10 19.42 npm ERR! command failed

#10 19.42 npm ERR! command sh -c node-gyp-build

#10 19.43 npm ERR! gyp info it worked if it ends with ok

#10 19.43 npm ERR! gyp info using [email protected]

#10 19.43 npm ERR! gyp info using [email protected] | linux | x64



#10 19.43 npm ERR! gyp ERR! find Python

#10 19.43 npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration

#10 19.43 npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON

#10 19.43 npm ERR! gyp ERR! find Python checking if "python3" can be used
#10 19.42 npm ERR! code 1



#10 19.42 npm ERR! path /app/node_modules/ffi-napi

#10 19.42 npm ERR! command failed

#10 19.42 npm ERR! command sh -c node-gyp-build

#10 19.43 npm ERR! gyp info it worked if it ends with ok

#10 19.43 npm ERR! gyp info using [email protected]

#10 19.43 npm ERR! gyp info using [email protected] | linux | x64



#10 19.43 npm ERR! gyp ERR! find Python

#10 19.43 npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration

#10 19.43 npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON

#10 19.43 npm ERR! gyp ERR! find Python checking if "python3" can be used
project: 7bd9394f-6a2f-4a94-b405-cdc7d5edd6c7 added a npm package now railway complains about python not found
11 replies
RRailway
Created by eddie on 10/17/2023 in #✋|help
yarn command not found?
having troubles deploying a simple yarn project which i used create-react-app
#12 0.308 /bin/bash: line 1: yarn: command not found

#12 ERROR: process "/bin/bash -ol pipefail -c yarn run build" did not complete successfully: exit code: 127
#12 0.308 /bin/bash: line 1: yarn: command not found

#12 ERROR: process "/bin/bash -ol pipefail -c yarn run build" did not complete successfully: exit code: 127
19 replies
RRailway
Created by eddie on 5/5/2023 in #✋|help
mongodb collection missing
27 replies
RRailway
Created by eddie on 5/5/2023 in #✋|help
how to backup mongodb?
project: 448a8382-6e3f-42d6-a3cd-a9a8c5493c1d is there a way to simply backup a mongodb to a zip or something?
5 replies
RRailway
Created by eddie on 3/20/2023 in #✋|help
upgraded to new railway, having "program not found"
22 replies
RRailway
Created by eddie on 3/9/2023 in #✋|help
cname and A name
hello, we are trying to expoose our app to a custom domain in here (https://docs.railway.app/deploy/exposing-your-app#redirecting-a-root-domain-from-google-domains) it tells me how to setup CNAME to point to https://www.WEBSITE.com but how do i setup ANAME to point to https://website.com ?
6 replies
RRailway
Created by eddie on 10/26/2022 in #✋|help
Docker builds failing
21 replies
RRailway
Created by eddie on 10/24/2022 in #✋|help
transfer ownership of project
is there a way to transfer ownership of a project entirely to a different account but keep all services intact?
21 replies
RRailway
Created by eddie on 10/12/2022 in #✋|help
deployments not finding my folder
9 replies