Arctic
Explore posts from serversRailway API problems
Hey everyone. Im trying to access railway api. what im i doing wrong?
const response = await fetch(
'https://backboard.railway.app/graphql/v2',
{
method: 'POST',
headers: {
Authorization:
Bearer ${RAILWAY_API_KEY}
,
'Content-Type': 'application/json'
},
body: JSON.stringify({
query: 'query { me { name email } }'
})
}
);
if (!response.ok) {
throw new Error('Network response was not ok');
}
const res = await response.json();
console.log(res);
this is the console.log(res)
POST /api/railway 200 in 456ms
{
errors: [
{
message: 'Not Authorized',
locations: [Array],
path: [Array],
extensions: [Object]
}
],
data: null
}8 replies
pythonanywhere
hey guys im running a python file on the pythonanywhere server. This script interacts with my mysql database thats hosted on railway. I keep getting this error:
Error while connecting to MySQL 2003 (HY000): Can't connect to MySQL server on 'xxxxxxxxxx' (111)
do i need to change something in my railway mysql settings for this to work? thanks in advance
69 replies
connection URL changed after resuming database
I have had my databases hosted on railway for the past 10 months, but recently i exceeded my cards limit that ive used to pay my railway subscription. So the card declined the payment and my databases got paused. now i paid the open invoice with a new card and was able to resume the paused databases. So far so good, but now the connection URL changed for both databases and it doesnt show all the tables anymore, can anyone assist me in this manner?
19 replies
Cant login to railway cli
Getting this error in the browser for "railway login"
Error logging in to CLI. Please try again with
--browserless
When i try with browserless flag, I get a success message in the browser, but then in the console window i get "Error: No name"51 replies
problems connecting github
im trying to connect github to a second railway account i have for a seperate project i work on.
i use 2 railway account because i have different payment methods for each project, how can i connect my github to both of these accounts?
6 replies