ServiceConnect request returns HTTP 400 "Problem processing request"
tlkiong
HOBBYOP

2 months ago

I am trying to spin up an instance and attach a docker image to it via the public API.

I managed to spin up the instance but docker is not attached. No idea why as all serviceConnect request seems to return 400 with a generic response

$10 Bounty

9 Replies

Railway
BOT

2 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


ralyodio
HOBBY

2 months ago

can you provide logs? railsway logs --build


noahd
EMPLOYEE

2 months ago

Hey there! Can I get any info on the service?

All info is good info!


tlkiong
HOBBYOP

2 months ago

Hey. Sorry. I couldn't reply yesterday cause I hit the limit of creating a new service.

I am using the graphql and not railway cli.
The response was:

{

"phase": "response",

"operationName": "ServiceConnect",

"httpStatus": 400,

"headers": {

"access-control-allow-credentials": "true",

"access-control-allow-origin": "https://railway.com",

"cache-control": "no-store",

"cf-cache-status": "DYNAMIC",

"cf-ray": "984f2069baad40d8-SIN",

"connection": "keep-alive",

"content-length": "86",

"content-type": "application/json; charset=utf-8",

"date": "Fri, 26 Sep 2025 01:53:15 GMT",

"server": "cloudflare",

"vary": "Origin, Accept-Encoding",

"via": "1.1 google",

"x-ratelimit-limit": "1000",

"x-ratelimit-remaining": "997",

"x-ratelimit-reset": "2025-09-26T02:53:15.114Z"

},

"body": {

"errors": [

{

"message": "Problem processing request",

"traceId": "1402431938152308359"

}

]

}

}


tlkiong

Hey. Sorry. I couldn't reply yesterday cause I hit the limit of creating a new service.I am using the graphql and not railway cli.The response was:{"phase": "response","operationName": "ServiceConnect","httpStatus": 400,"headers": {"access-control-allow-credentials": "true","access-control-allow-origin": "https://railway.com","cache-control": "no-store","cf-cache-status": "DYNAMIC","cf-ray": "984f2069baad40d8-SIN","connection": "keep-alive","content-length": "86","content-type": "application/json; charset=utf-8","date": "Fri, 26 Sep 2025 01:53:15 GMT","server": "cloudflare","vary": "Origin, Accept-Encoding","via": "1.1 google","x-ratelimit-limit": "1000","x-ratelimit-remaining": "997","x-ratelimit-reset": "2025-09-26T02:53:15.114Z"},"body": {"errors": [{"message": "Problem processing request","traceId": "1402431938152308359"}]}}

Please share the GraphQL request you are making.


tlkiong
HOBBYOP

2 months ago

mutation ServiceConnect($id: String!, $input: ServiceConnectInput!) {

serviceConnect(id: $id, input: $input) {

__typename

id

name

projectId

updatedAt

}

}

Would the above be sufficient?


tlkiong

mutation ServiceConnect($id: String!, $input: ServiceConnectInput!) {serviceConnect(id: $id, input: $input) {__typenameidnameprojectIdupdatedAt}}Would the above be sufficient?

Have you tried providing the input variables directly?

mutation serviceConnect {
  serviceConnect(
		id: "service-id",
		input: {
			image: "docker url thing"
		}
	) {
		id
	}
}

You can find the documentation here.


tlkiong
HOBBYOP

2 months ago

Thanks. Let me try


tlkiong

Thanks. Let me try

noahd
EMPLOYEE

2 months ago

Howdy! Did what Loudbook send get things fixed?


Loading...