7 months ago
I have a NextJS website at GitHub Repository. I created a project at Railway sucessfully but not able to add my GitHub repository using the mutation named "projectSetGithubRepository"
Expected: I need to add my Github repository at newly created railway project then need deploy it.
Tried method:
{
"query": "mutation SetRepo { projectSetGithubRepository(input: { projectId: \"cd952134-afc0-419f-b244-9ef54eb6b08b\", repository: \"hello-vistraal/nextjs-test-website_67e6ecf3f7beb06e44cd9b31\" }) { id name repo } }"
}
Method: POST
URL: https://backboard.railway.app/graphql/v2
Headers:
Authorization: Bearer <my Railway token>
Content-Type: application/json
Error:
{
"errors": [
{
"message": "Problem processing request",
"traceId": "7593047767275162209"
}
]
}10 Replies
7 months ago
I wonder if this could be related to the ongoing incident: https://status.railway.com/cm9tq9j0a007mlx4779v3kcyb
7 months ago
Tried now. still same issue.
{
"errors": [
{
"message": "Problem processing request",
"traceId": "3917063643150086315"
}
]
}Can you share any reference for Adding my Github repository at the Railway project?
7 months ago
Interesting, guess it's unrelated then 
Where did you find that mutation that you're using? I don't recall seeing that in the Railway GraphQL schema
7 months ago
I found at Chat GPT. Is there any dedicated API documentation for reference? Kindly share.
7 months ago
I just want to add my website from Github repo to Railway project then Environment setup and deployment.
hello-vistraal
I found at Chat GPT. Is there any dedicated API documentation for reference? Kindly share.
7 months ago
Sure, here are some resources:
hello-vistraal
I just want to add my website from Github repo to Railway project then Environment setup and deployment.
7 months ago
The GraphQL library on Railway is meant for people who want to automate Railway functionality, if you simply want to deploy your project to Railway then there's no need to use GraphQL. You just need to go to https://dev.new, and select your GitHub repo
If you want to learn how to use Railway, then I'd recommend quickly running through this documentation: https://docs.railway.com/overview/the-basics
7 months ago
https://dev.new Its manual deployment.
here my requirement flow:
I need to Create a project using Railway API( Its working fine) > Add my website at the project from my github repository(require API) > Environment setup > Deploy the website > Monitor the website. So everything should happen by API not manual UI
Requirements:
1. API for adding my Github repository at the railway project
2. API for environment setup
3. API for deployment
4. API for monitoring
7 months ago
Why do you need to do it through the API?
The API for everything can be found in the resources I listed above
7 months ago
Can you tell us more about your need to deploy through the API? You should only need this if you're scaling your infrastructure very high (say hundreds of Services). We might need to chat about how you want to scale, so understanding your use-case becomes very important.
Otherwise I'd recommend using the UI to deploy your services, and potentially config-as-code to save your settings in your repository.
Status changed to Awaiting User Response Railway • 8 months ago
4 months ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • 4 months ago