Failed calling the API, result with error code 400 and a traceId
gilamran
PROOP

a year ago

I don't know what I'm doing wrong with my call to the API, 99% of my calls work.
I tried looking at the developer tool, and see the exact GraphQL information and it looks ok…
Is there a way to see what's the actual error is using the traceId?

Solved

25 Replies

gilamran
PROOP

a year ago

a295cf8d-c2a6-4965-a928-d940f1250054


brody
EMPLOYEE

a year ago

can you give me the query, variables, and trace Id please?


gilamran
PROOP

a year ago

project Id (Different from above) : 44efb1c7-ea0e-40d1-b7a2-2444a6e28272

query: mutation stageEnvironmentChanges($environmentId: String!, $payload: EnvironmentConfig!) { environmentStageChanges(environmentId: $environmentId, input: $payload) { id } }

operationName: stageEnvironmentChanges

variables:

{
  environmentId: "0653a4c8-fafb-4784-b71e-522d47d1a173",
  payload: {
    services: {
      "74f31bae-539a-4e12-99ba-89d334dece86": {
        deploy: {
          registryCredentials: {
            username: "SOME_USER_NAME",
            password: "SOME_PASSWORD",
          },
        },
      },
    },
  },
}

response: {message: 'Problem processing request', traceId: '7350397501026768937'}


brody
EMPLOYEE

a year ago

are you trying to call the public api with that request?


gilamran
PROOP

a year ago

Wdym? Public API?


gilamran
PROOP

a year ago

I want to set the credentials of my docker hub


brody
EMPLOYEE

a year ago

are you trying to call the public api endpoint with that request?


gilamran
PROOP

a year ago

I saw how it looks when I do it manually


brody
EMPLOYEE

a year ago

try calling [https://backboard.railway.com/graphql/internal](https://backboard.railway.com/graphql/internal) with that mutation


gilamran
PROOP

a year ago

All my calls are going to [https://backboard.railway.app/graphql/v2](https://backboard.railway.app/graphql/v2)


gilamran
PROOP

a year ago

I'll try


gilamran
PROOP

a year ago

it worked, but not on .com but on .app


gilamran
PROOP

a year ago

can you explain please?


brody
EMPLOYEE

a year ago

what endpoint worked with .com


gilamran
PROOP

a year ago

nm, it's working on .app and on .com


gilamran
PROOP

a year ago

can you explain internal vs v2?


gilamran
PROOP

a year ago

can I do all my calls to internal?


brody
EMPLOYEE

a year ago

what has worked for you is unclear, please answer my question


brody
EMPLOYEE

a year ago

what endpoint are you now using that is working


gilamran
PROOP

a year ago

[https://backboard.railway.com/graphql/internal](https://backboard.railway.com/graphql/internal) works


gilamran
PROOP

a year ago

ok, I've changed ALL my calls to use [https://backboard.railway.com/graphql/internal](https://backboard.railway.com/graphql/internal) and everything works!


gilamran
PROOP

a year ago

but the docs the URL is [https://backboard.railway.com/graphql/v2](https://backboard.railway.com/graphql/v2)



brody
EMPLOYEE

a year ago

the mutation you are trying to call would not be available on the public endpoint


brody
EMPLOYEE

a year ago

!s


Status changed to Solved brody about 1 year ago


Loading...