Help: "Problem processing request" when using serviceCreate mutation via Railway GraphQL API
ru-dr
HOBBYOP

5 months ago

I'm trying to create a new service in my Railway project using the GraphQL API (v2) through Postman, but I keep getting the following error response:

{
  "errors": [
    {
      "message": "Problem processing request",
      "traceId": "4634186857790866770"
    }
  ]
}

▶️ What I’m Doing

  • Mutation: serviceCreate($input: ServiceCreateInput!)

  • Tool: Postman (GraphQL tab)

  • API Endpoint: [https://backboard.railway.app/graphql/v2](https://backboard.railway.app/graphql/v2)

  • Auth: Bearer token in headers (fully working with other queries like me, teams, etc.)

🔧 GraphQL Mutation

mutation serviceCreate($input: ServiceCreateInput!) {
  serviceCreate(input: $input) {
    __typename
    id
    name
    projectId
    createdAt
    updatedAt
    deletedAt
    icon
    templateThreadSlug
  }
}

🧩 Variables

{
  "input": {
    "projectId": "d1909034-17dd-4603-9f3d-10b4496ad718",
    "name": "my-service",
    "source": {
      "type": "GITHUB",
      "github": {
        "repo": "ru-dr/yatrazen",
        "branch": "main",
        "rootDirectory": "/"
      }
    }
  }
}

✅ Things I’ve Already Checked

  • The project ID is valid and created just before this step.

  • GitHub repo ru-dr/yatrazen exists and is public.

  • main branch exists and contains a basic Node project with package.json.

  • Same token works for listing projects and teams.

🙋‍♂️ Context — What I’m Building

I’m building a platform for developers that lets users:

  • Connect or upload their GitHub repositories

  • Deploy them to Railway using my API backend

  • Automatically get a deployment preview/production link

Basically, I want users to interact with Railway without going to the Railway dashboard.

To do this, I’m integrating with the Railway GraphQL Public API to:

  1. Create a project

  2. Create a service from a GitHub repo

  3. Monitor deployments and fetch the deployment link

Solved$10 Bounty

2 Replies

jr
EMPLOYEE

5 months ago

Can you please provide the traceId. That will help us investigate what went wrong


ru-dr
HOBBYOP

5 months ago

4634186857790066770


ru-dr
HOBBYOP

5 months ago

Here is the trace Id


jr

Can you please provide the traceId. That will help us investigate what went wrong

ru-dr
HOBBYOP

5 months ago

4634186857790066770


ru-dr
HOBBYOP

5 months ago

is there any way to solve it, also the api documentation is not complete, i think.


passos
MODERATOR

5 months ago

hey, were you able to fix it? Asking because you created another help thread
https://discord.com/channels/713503345364697088/1388560897366163456


ru-dr
HOBBYOP

5 months ago

@ThallesComH well kind of but I can't understand, why I am getting a bad request and if I am missing something or adding a wrong request body then why the response is not telling me what is wrong, or is it an API issue.


ru-dr
HOBBYOP

5 months ago

@ThallesComH also I think there is no full documentation for the API, bcz on the site I can't seem to find it and in postman it's lacking the simplicity or example based docs.


passos
MODERATOR

5 months ago

I can agree that the API is not fully great at the moment, the team might work on a v2 on the future (no plans at the moment, being clear) https://discord.com/channels/713503345364697088/727689277219012669/1352155627329163335
for now, feel free to open any help thread related to it.


passos
MODERATOR

5 months ago

for docs, the Railway API is in graphql so all the reference for it is already available but if you're talking about guides then unfortunately none is available at the moment.


ru-dr
HOBBYOP

5 months ago

!s


Status changed to Solved brody 5 months ago


Loading...