Eric
Eric
RRailway
Created by Eric on 2/19/2024 in #✋|help
Is it possible to run Github Actions after a PR Environment is spun up?
I want to setup pr environment for my project, but the to do so I need to setup the tables in a database and seed it with some data. Is it possible to wait for the environment to spin up and the access it in Github actions?
3 replies
RRailway
Created by Eric on 9/21/2023 in #✋|help
Setup Super User for GlitchTip backend in Railway
I setup glitchtip using this template here https://railway.app/template/AMx6AD I want to start adding users to glitchtip, but apparently I need to setup a django backend superuser. To do that I need to run ./manage.py createsuperuser. I don't have glitchtip running locally and don't really know how to do that. Best I could do is run the container locally, but then I would have to open a shell in the container and then figure out how to authentication to railway from inside to even attempt running this locally. Is it possible to somehow run this in the container on railway? Thank you
10 replies
RRailway
Created by Eric on 7/12/2023 in #✋|help
DNS Error when using Fetch API only in Railway
I wrote a crawler using the crawlbase api. It runs fine in a container on my local machine, but in railway, it seems like im getting some kind of dns error. Container Base: node:18.16-alpine Its just a basic node + typescript application. Here is an example of how im fetching.
const response = await fetch(
'https://api.crawlbase.com'
+ qs.stringify({
url,
format: 'json',
token: token,
}, { encode: true, addQueryPrefix: true })
);
const response = await fetch(
'https://api.crawlbase.com'
+ qs.stringify({
url,
format: 'json',
token: token,
}, { encode: true, addQueryPrefix: true })
);
The error looks something like this
TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11457:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
cause: Error: getaddrinfo EAI_AGAIN api.crawlbase.com
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) {
errno: -3001,
code: 'EAI_AGAIN',
syscall: 'getaddrinfo',
hostname: 'api.crawlbase.com'
}
}
TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11457:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
cause: Error: getaddrinfo EAI_AGAIN api.crawlbase.com
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) {
errno: -3001,
code: 'EAI_AGAIN',
syscall: 'getaddrinfo',
hostname: 'api.crawlbase.com'
}
}
Not really sure why this is and wanted to make sure there aren't any internal dns gotchas
15 replies