!0xRafael 🔨👷
!0xRafael 🔨👷
RRailway
Created by !0xRafael 🔨👷 on 7/12/2024 in #✋|help
Visualize Failing Third Party APIs with Railway's "Observability"
Do you by chance know how to get started on implementation something like this in a way where it is not too time intense? I am not even sure how to properly search for it.
9 replies
RRailway
Created by !0xRafael 🔨👷 on 7/12/2024 in #✋|help
Visualize Failing Third Party APIs with Railway's "Observability"
03b9d68c-2d80-4600-a0a4-317a53176c97
9 replies
RRailway
Created by !0xRafael 🔨👷 on 2/27/2024 in #✋|help
Problems using Railway's Redis Private Networking (Solved)
Yeah, I had it on family 6, which did work once, but then after another redeploy it didn't work and I thought I had introduced a bug, but seems like the sleep was the only thing missing. Ipv6 generally still feels like a earlier adopter thing or like an afterthought, which is ridiculous
35 replies
RRailway
Created by !0xRafael 🔨👷 on 2/27/2024 in #✋|help
Problems using Railway's Redis Private Networking (Solved)
Great, can't wait, less unexpected stuff to worry about!
35 replies
RRailway
Created by !0xRafael 🔨👷 on 2/27/2024 in #✋|help
Problems using Railway's Redis Private Networking (Solved)
Interesting stats, very good to know. Now the private networking is solid. Thanks for the patience, I highly appreciate it :salute:
35 replies
RRailway
Created by !0xRafael 🔨👷 on 2/27/2024 in #✋|help
Problems using Railway's Redis Private Networking (Solved)
Ok, thanks you, interesting. Even after multiple restarts it is working. I will increase it to 5 seconds just to be sure
35 replies
RRailway
Created by !0xRafael 🔨👷 on 2/27/2024 in #✋|help
Problems using Railway's Redis Private Networking (Solved)
No description
35 replies
RRailway
Created by !0xRafael 🔨👷 on 2/27/2024 in #✋|help
Problems using Railway's Redis Private Networking (Solved)
Ah, I think you mean here like this "start:prod": "sleep 3 && node dist/main" I am not over-complicating it on purpose. I am unsure what a "start script" is from your perspective. The package.json script, the code initializing the application, etc.
35 replies
RRailway
Created by !0xRafael 🔨👷 on 2/27/2024 in #✋|help
Problems using Railway's Redis Private Networking (Solved)
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { EnvService } from './env/env.service';

async function bootstrap() {
const app = await NestFactory.create(AppModule);
const envService = app.get(EnvService);
app.enableCors();
await app.listen(envService.get('PORT'));
}
bootstrap();
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { EnvService } from './env/env.service';

async function bootstrap() {
const app = await NestFactory.create(AppModule);
const envService = app.get(EnvService);
app.enableCors();
await app.listen(envService.get('PORT'));
}
bootstrap();
Before NestFactory.create or after?
35 replies
RRailway
Created by !0xRafael 🔨👷 on 2/27/2024 in #✋|help
Problems using Railway's Redis Private Networking (Solved)
@Brody, nvm, seems like this one time was luck
35 replies
RRailway
Created by !0xRafael 🔨👷 on 2/27/2024 in #✋|help
Problems using Railway's Redis Private Networking (Solved)
When I use a text compare tool it is the same. No idea, I don't really have the time to look into it at the moment. Thanks a lot!
35 replies
RRailway
Created by !0xRafael 🔨👷 on 2/27/2024 in #✋|help
Problems using Railway's Redis Private Networking (Solved)
Any idea why?
35 replies
RRailway
Created by !0xRafael 🔨👷 on 2/27/2024 in #✋|help
Problems using Railway's Redis Private Networking (Solved)
When I do "const redisUrl = envService.get('REDIS_URL') + '?family=0';" it works, you right. Not sure why, it logs the same
35 replies
RRailway
Created by !0xRafael 🔨👷 on 2/27/2024 in #✋|help
Problems using Railway's Redis Private Networking (Solved)
No description
35 replies
RRailway
Created by !0xRafael 🔨👷 on 2/27/2024 in #✋|help
Problems using Railway's Redis Private Networking (Solved)
Thanks for taking the time to respond.
35 replies
RRailway
Created by !0xRafael 🔨👷 on 2/27/2024 in #✋|help
Problems using Railway's Redis Private Networking (Solved)
With the public URL it works no problem
35 replies
RRailway
Created by !0xRafael 🔨👷 on 2/27/2024 in #✋|help
Problems using Railway's Redis Private Networking (Solved)
I see this in the docs
ioredis is a Redis client for node.js, commonly used for connecting to Redis from a node application. When initializing a Redis client using ioredis, you must specify family=0 in the connection string to support connecting to both IPv6 and IPv4 connections: import Redis from 'ioredis'; const redis = new Redis(process.env.REDIS_PRIVATE_URL + '?family=0'); const ping = await redis.ping();
When I update my constructor to the following it unfortunately still doesn't work.
constructor(private readonly envService: EnvService) {
const redisProtocol = envService.get('REDIS_PROTOCOL');
const redisUrl = `${envService.get('REDIS_URL')}?family=${redisProtocol}`;

super(redisUrl, {
maxRetriesPerRequest: null,
connectTimeout: 30000, // 30 seconds
});

this.redisUrl = redisUrl;
this.redisProtocol = redisProtocol;

this.logger.log('creating redis client', redisUrl, redisProtocol);
}
constructor(private readonly envService: EnvService) {
const redisProtocol = envService.get('REDIS_PROTOCOL');
const redisUrl = `${envService.get('REDIS_URL')}?family=${redisProtocol}`;

super(redisUrl, {
maxRetriesPerRequest: null,
connectTimeout: 30000, // 30 seconds
});

this.redisUrl = redisUrl;
this.redisProtocol = redisProtocol;

this.logger.log('creating redis client', redisUrl, redisProtocol);
}
Logs: [Nest] 26 - 02/27/2024, 3:34:13 PM LOG [RedisService] creating redis client [Nest] 26 - 02/27/2024, 3:34:13 PM LOG [RedisService] redis://default:[email protected]:6379?family=0 [Nest] 26 - 02/27/2024, 3:34:13 PM LOG [RedisService] 0 [Nest] 25 - 02/27/2024, 3:34:41 PM ERROR [RedisService] Error connecting to Redis: [Nest] 25 - 02/27/2024, 3:34:41 PM ERROR [RedisService] Error: getaddrinfo ENOTFOUND redis-eblx.railway.internal
35 replies
RRailway
Created by !0xRafael 🔨👷 on 2/27/2024 in #✋|help
Problems using Railway's Redis Private Networking (Solved)
03b9d68c-2d80-4600-a0a4-317a53176c97
35 replies
RRailway
Created by !0xRafael 🔨👷 on 10/27/2023 in #✋|help
Help Required to understand how to make my setup work with Railway
71 replies
RRailway
Created by !0xRafael 🔨👷 on 10/27/2023 in #✋|help
Help Required to understand how to make my setup work with Railway
I have learned something new
71 replies