demo
demo
RRailway
Created by demo on 12/3/2023 in #✋|help
$PORT inconsistently being provided? race condition?
https://railway.app/project/e83cd241-4a9f-417c-9151-eee7ac5d0788/service/62746785-6a46-421e-9422-efd3d7ff869e?id=4c357709-dac5-4cb5-9ada-298507b28d2b Run code w/ two start commands npx quartz build --serve --port $PORT ^-- errors with RangeError: options.port should be >= 0 and < 65536. Received type number (NaN). echo 'port'$PORT && npx quartz build --serve --port $PORT ^-- succeeds
40 replies
RRailway
Created by demo on 8/17/2023 in #✋|help
does railway use .gitignore for "railway up"?
https://stackoverflow.com/questions/76394368/does-railwaycli-ignore-files-defined-in-gitignore This post says no but yesterday my new sites css was missing. I then removed the .gitignore and it was there. Project Id: 969389da-3e84-49b8-bf1c-b3483befcbcc
8 replies
RRailway
Created by demo on 4/17/2023 in #✋|help
Railway CLI auth from WSL?
Any way to auth by getting an auth link in my terminal? Since I have no browser attached to WSL it's not exactly the most convenient thing to run railway login
14 replies
RRailway
Created by demo on 3/27/2023 in #✋|help
CSS blocked:mixed-content for gunicorn server | HTTPS | FastAPI | Serving HTML
13 replies
RRailway
Created by demo on 3/21/2023 in #✋|help
'$PORT' is not a valid port number
10 replies
RRailway
Created by demo on 3/5/2023 in #✋|help
Running Sveltekit App inside a monorepo - Build errors - Path not found
I've tried a few different permutations of potential solutions but haven't been able to track down anything that works for me. I have a project (3437cb53-716a-4154-9d3b-63def56dd675/service/6ff1c6cf-e318-4926-be63-bfc4720ed8a3) where I am attempting to build and run a sveltekit app that I have recently moved from it's own repo to a monorepo of mine. The project is located at $ROOT/projects/thorne-wolf-com/ and I get various errors with various configurations. Attempt #1 Root Directory: /projects/thorne-wolf-com, Build Command npm run build, Start Command node build/index.js Error: Could not load /app/src/lib/components/ArticlePreview.svelte (imported by src/routes/articles/all/+page.svelte): ENOENT: no such file or directory Comments: this path does indeed exist but I don't have much visibility into what directory Railway actually clones Attempt #2 Root Directory: /, Build Command cd projects/thorne-wolf-com && npm run build, Start Command node build/index.js Error: #13 0.303 /bin/bash: line 1: npm: command not found Comments: I want to specify node as a provider but I can't do it in the root folder of my monorepo because then how do I differentiate my python projects from my node projects. So a root level nix config doesn't help me. Is there an alternative? Attempt #3 Same as #2 but I specify NIXPACKS_NODE_VERSION=18 in my env variables. Error: (It installs a bunch of python packages from a separate project) then npm: command not found Let me know if there is any other info I need to provide for this.
8 replies
RRailway
Created by demo on 10/28/2022 in #✋|help
Docker build failed - PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE
Project ID: d604ae57-452b-43f3-9f81-fb085605c65a Project has issues pip installing google-api-python-client on my prod environment but not the test one. Not sure what leads to this issue.
15 replies
RRailway
Created by demo on 10/19/2022 in #✋|help
Weird partially auth'd state for my project. authed+unauthed while logged out.
2 replies
RRailway
Created by demo on 10/2/2022 in #✋|help
Does railway do any modification to incoming request bodies? Failing to validate stripe signatures.
This is a less railway-esque question but I am having some issues developing a stripe integration for a project I have deployed on railway. Stack
Python - FastAPI, stripe-python
Python - FastAPI, stripe-python
Problem
When validating stripe requests using their provided python library I am getting SignatureVerificationError's. These errors surface when the provided request body does not match the signature stripe provided.

I am fairly certain my implementation is correct because I have two webhooks configured via Stripe. One points to my local machine, the other points to my railway service. My machine successfully processes the stripe webhook while the Railway service is unable to verify the signature.
When validating stripe requests using their provided python library I am getting SignatureVerificationError's. These errors surface when the provided request body does not match the signature stripe provided.

I am fairly certain my implementation is correct because I have two webhooks configured via Stripe. One points to my local machine, the other points to my railway service. My machine successfully processes the stripe webhook while the Railway service is unable to verify the signature.
Expectation
I expect the behavior between the locally executed repository and the remote to be the same.
I expect the behavior between the locally executed repository and the remote to be the same.
Project ID: d604ae57-452b-43f3-9f81-fb085605c65a/service/8ac5f605-42bd-4f1a-8df8-42cd98f96173?id=169ff06f-5a92-4daf-95f9-533efdfb1e091
3 replies
RRailway
Created by demo on 9/30/2022 in #✋|help
Getting really long response times from the default MongoDB instance
Are there any issues going on with mongo atm?
13 replies
RRailway
Created by demo on 9/26/2022 in #✋|help
Sudden build failure
Updated a README and pushed and was surprised that my build is now failing.
================
Using Buildpacks
================
20: Pulling from heroku/buildpacks

Digest: sha256:ec85cb9658066b31a4d5d9a0f6816bfa112ff626f93afaead872812226eb6f2b
Status: Image is up to date for heroku/buildpacks:20

20-cnb: Pulling from heroku/heroku

Digest: sha256:c233084a9a068c6526928956bfe2445ed1a7d05cc696cec089ce87c40fd99893
Status: Image is up to date for heroku/heroku:20-cnb

Previous image with name "us-west1-docker.pkg.dev/railway-infra/railway-docker-users/project/d604ae57-452b-43f3-9f81-fb085605c65a/service/c9766d5a-0506-4b50-966f-0e36e1345105:f93dbef6-1e8e-4ec9-a164-d1fbc69ed99d" not found
===> DETECTING

heroku/python 0.0.0
heroku/procfile 1.0.2
===> RESTORING
===> BUILDING

----> No Python version was specified. Using the buildpack default: python-3.10.7
To use a different version, see: https://devcenter.heroku.com/articles/python-runtimes

! Requested runtime 'python-3.10.7' is not available for this stack (heroku-20).
! For supported versions, see: https://devcenter.heroku.com/articles/python-support

ERROR: failed to build: exit status 1

ERROR: failed to build: executing lifecycle: failed with status code: 51

================
Using Buildpacks
================
20: Pulling from heroku/buildpacks

Digest: sha256:ec85cb9658066b31a4d5d9a0f6816bfa112ff626f93afaead872812226eb6f2b
Status: Image is up to date for heroku/buildpacks:20

20-cnb: Pulling from heroku/heroku

Digest: sha256:c233084a9a068c6526928956bfe2445ed1a7d05cc696cec089ce87c40fd99893
Status: Image is up to date for heroku/heroku:20-cnb

Previous image with name "us-west1-docker.pkg.dev/railway-infra/railway-docker-users/project/d604ae57-452b-43f3-9f81-fb085605c65a/service/c9766d5a-0506-4b50-966f-0e36e1345105:f93dbef6-1e8e-4ec9-a164-d1fbc69ed99d" not found
===> DETECTING

heroku/python 0.0.0
heroku/procfile 1.0.2
===> RESTORING
===> BUILDING

----> No Python version was specified. Using the buildpack default: python-3.10.7
To use a different version, see: https://devcenter.heroku.com/articles/python-runtimes

! Requested runtime 'python-3.10.7' is not available for this stack (heroku-20).
! For supported versions, see: https://devcenter.heroku.com/articles/python-support

ERROR: failed to build: exit status 1

ERROR: failed to build: executing lifecycle: failed with status code: 51

9 replies