oat.lpk
oat.lpk
RRailway
Created by oat.lpk on 6/6/2024 in #✋|help
Is there a way to protect / authenticate the public networking link or custom domain?
How do i set this up in railway?
8 replies
RRailway
Created by oat.lpk on 6/6/2024 in #✋|help
Is there a way to protect / authenticate the public networking link or custom domain?
n/a
8 replies
RRailway
Created by oat.lpk on 5/13/2024 in #✋|help
GraphQL Severity Filter
Ok sure thing ill dig into that
94 replies
RRailway
Created by oat.lpk on 5/13/2024 in #✋|help
GraphQL Severity Filter
rn the log continuously spits out empty array which i ignore and just dont send them as message
94 replies
RRailway
Created by oat.lpk on 5/13/2024 in #✋|help
GraphQL Severity Filter
Hahah thats actually on my ticket for tmr, but now tht uve mentioned it, do u mind pointing me in teh right direction
94 replies
RRailway
Created by oat.lpk on 5/13/2024 in #✋|help
GraphQL Severity Filter
e.g. cron job automated testing services
94 replies
RRailway
Created by oat.lpk on 5/13/2024 in #✋|help
GraphQL Severity Filter
In the end though i decided to use my own code for querying and hooking up to discord webhook as we plan to use this repo for services othen then railway log monitoring
94 replies
RRailway
Created by oat.lpk on 5/13/2024 in #✋|help
GraphQL Severity Filter
Hey got a chance to test out the template today, i think overall it works nicely right out the box, its something id definitely use on my personal project
94 replies
RRailway
Created by oat.lpk on 5/13/2024 in #✋|help
GraphQL Severity Filter
Ok sure thing, will get u the feedback when i work on it
94 replies
RRailway
Created by oat.lpk on 5/13/2024 in #✋|help
GraphQL Severity Filter
tysm for the help tho, do u want any specific feedback from using ur template?
94 replies
RRailway
Created by oat.lpk on 5/13/2024 in #✋|help
GraphQL Severity Filter
btw where can i get the environmentId from railway?
94 replies
RRailway
Created by oat.lpk on 5/13/2024 in #✋|help
GraphQL Severity Filter
Will try this out fully tmr with the team and let u know ✌️
94 replies
RRailway
Created by oat.lpk on 5/13/2024 in #✋|help
GraphQL Severity Filter
When i tried to use environmentLog (without passing any variable 😂 ) i get this error though Error fetching logs: [ { message: 'Cannot query field "environmentLogs" on type "Subscription". Did you mean "deploymentLogs"?', locations: [ [Object] ] } ]
export async function fetchLogs() {
const graphqlQuery = `
subscription fetchLogs {
environmentLogs(deploymentId: "${deploymentId}") {
message
severity
}
}
`;

try {
const iterator = client.iterate({
query: graphqlQuery,
});

const {value} = await iterator.next();

console.log('Received:', JSON.stringify(value));
return value.data;
} catch (error) {
console.error('Error fetching logs:', error);
throw error;
}
}
export async function fetchLogs() {
const graphqlQuery = `
subscription fetchLogs {
environmentLogs(deploymentId: "${deploymentId}") {
message
severity
}
}
`;

try {
const iterator = client.iterate({
query: graphqlQuery,
});

const {value} = await iterator.next();

console.log('Received:', JSON.stringify(value));
return value.data;
} catch (error) {
console.error('Error fetching logs:', error);
throw error;
}
}
94 replies
RRailway
Created by oat.lpk on 5/13/2024 in #✋|help
GraphQL Severity Filter
hahaha
94 replies
RRailway
Created by oat.lpk on 5/13/2024 in #✋|help
GraphQL Severity Filter
btu found that
94 replies
RRailway
Created by oat.lpk on 5/13/2024 in #✋|help
GraphQL Severity Filter
actually i was searching for environmentLog
94 replies
RRailway
Created by oat.lpk on 5/13/2024 in #✋|help
GraphQL Severity Filter
this actually solved my problem allowing my code to run the query
94 replies
RRailway
Created by oat.lpk on 5/13/2024 in #✋|help
GraphQL Severity Filter
Oh btw i jst digged through discord, found one of ur chats about
webSocketImpl: class MyWebSocket extends WebSocket {
constructor(address: any, protocols: any) {
super(address, protocols, {
headers: {
Authorization: `Bearer ${bearerToken}`,
},
});
}
},
webSocketImpl: class MyWebSocket extends WebSocket {
constructor(address: any, protocols: any) {
super(address, protocols, {
headers: {
Authorization: `Bearer ${bearerToken}`,
},
});
}
},
94 replies
RRailway
Created by oat.lpk on 5/13/2024 in #✋|help
GraphQL Severity Filter
tbh no for both
94 replies
RRailway
Created by oat.lpk on 5/13/2024 in #✋|help
GraphQL Severity Filter
ah i see, thts good to know
94 replies