SSSuryaa
SSSuryaa
RRailway
Created by SSSuryaa on 10/24/2024 in #✋|help
wildcard domain cert error
please mark it as fixed
6 replies
RRailway
Created by SSSuryaa on 10/24/2024 in #✋|help
wildcard domain cert error
got fixed, deleted and added again
6 replies
RRailway
Created by SSSuryaa on 10/18/2024 in #✋|help
cloudflare tunnel and sveltekit
please do let me know if this is not required / recommended way to do this.
12 replies
RRailway
Created by SSSuryaa on 10/18/2024 in #✋|help
cloudflare tunnel and sveltekit
12 replies
RRailway
Created by SSSuryaa on 10/18/2024 in #✋|help
cloudflare tunnel and sveltekit
I thought this is recommended setup, seen it on web dev cody's channel on youtube
12 replies
RRailway
Created by SSSuryaa on 10/18/2024 in #✋|help
cloudflare tunnel and sveltekit
did not get it, my domain is already using cloudflare dns
12 replies
RRailway
Created by SSSuryaa on 10/18/2024 in #✋|help
cloudflare tunnel and sveltekit
to prevent againt ddos
12 replies
RRailway
Created by SSSuryaa on 10/13/2024 in #✋|help
Unable to connect to pgvector.railway.internal
got it, thanks
26 replies
RRailway
Created by SSSuryaa on 10/13/2024 in #✋|help
Unable to connect to pgvector.railway.internal
how to do this
26 replies
RRailway
Created by SSSuryaa on 10/13/2024 in #✋|help
Unable to connect to pgvector.railway.internal
thanks, I'll look it up
26 replies
RRailway
Created by SSSuryaa on 10/13/2024 in #✋|help
Unable to connect to pgvector.railway.internal
yes, they are different projects. any way to combine those?
26 replies
RRailway
Created by SSSuryaa on 10/13/2024 in #✋|help
Unable to connect to pgvector.railway.internal
do you get that error locally?
I mentioned that both are hosted on railway, because you asked this. sorry, english is not my first language
26 replies
RRailway
Created by SSSuryaa on 10/13/2024 in #✋|help
Unable to connect to pgvector.railway.internal
=== just to reiterate, using internal for connecting the application hosted on railway and db is also hosted on railway
26 replies
RRailway
Created by SSSuryaa on 10/13/2024 in #✋|help
Unable to connect to pgvector.railway.internal
// src/routes/healthz/+server.js
import { sql } from '$lib/server/db/client';
import { json } from '@sveltejs/kit';

export async function GET() {
try {
await sql`SELECT 1'`;
return json({ status: 'OK' }, { status: 200 });
} catch (error) {
// Check if the error is an instance of Error
const errorMessage = error instanceof Error ? error.message : 'Unknown error';
return json({ status: 'Service Unavailable', error: errorMessage }, { status: 503 });
}
}
// src/routes/healthz/+server.js
import { sql } from '$lib/server/db/client';
import { json } from '@sveltejs/kit';

export async function GET() {
try {
await sql`SELECT 1'`;
return json({ status: 'OK' }, { status: 200 });
} catch (error) {
// Check if the error is an instance of Error
const errorMessage = error instanceof Error ? error.message : 'Unknown error';
return json({ status: 'Service Unavailable', error: errorMessage }, { status: 503 });
}
}
code for healthcheck endpoint which only checks if db is connected or not
26 replies
RRailway
Created by SSSuryaa on 10/13/2024 in #✋|help
Unable to connect to pgvector.railway.internal
please check this healthcheck endpoint https://betterfaq-production.up.railway.app/healthz
26 replies
RRailway
Created by SSSuryaa on 10/13/2024 in #✋|help
Unable to connect to pgvector.railway.internal
using internal url
26 replies
RRailway
Created by SSSuryaa on 10/13/2024 in #✋|help
Unable to connect to pgvector.railway.internal
the issue I am facing is for the one hosted on railway
26 replies
RRailway
Created by SSSuryaa on 10/13/2024 in #✋|help
Unable to connect to pgvector.railway.internal
using public url locally
26 replies
RRailway
Created by SSSuryaa on 10/13/2024 in #✋|help
Unable to connect to pgvector.railway.internal
No description
26 replies
RRailway
Created by SSSuryaa on 10/13/2024 in #✋|help
Unable to connect to pgvector.railway.internal
postgresql://postgres:[email protected]:45850/railway this is my connection string if its of any help. I have replaced actual password with PASSWORD the following connection string is working postgresql://postgres:[email protected]:45850/railway
26 replies