GQL unable to get deployment logs
ehesp
PROOP

a month ago

Running the following GQL request (as per the docs):


query deploymentLogs($deploymentId: String!, $limit: Int) {

    deploymentLogs(deploymentId: $deploymentId, limit: $limit) {

      timestamp

      message

    }

  }

{

  "input": {

    "deploymentId": "e223281f-6902-46e6-b289-03a8bad7ab36",

    "limit": 1

  }

}

I simply get a 400 response:


{

  "errors": [

    {

      "message": "Problem processing request",

      "traceId": "1447474368517568835"

    }

  ]

}

All other GQL requests seem to be working from what I can see.

Solved

1 Replies

Railway
BOT

a month ago

Your variables are wrapped in an input object, but the deploymentLogs query expects deploymentId and limit as top-level variables. Pass them directly as { "deploymentId": "...", "limit": 1 } without the input wrapper, as shown in our API docs.


Status changed to Awaiting User Response Railway about 1 month ago


Status changed to Solved ehesp about 1 month ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...