I am trying to create n8n via api, but having issues to get environment id, public domain and so on.
agenciaspace
HOBBYOP

10 months ago

Service deployment initiated

⏳ Waiting for deployment to stabilize...

πŸ“Š Current deployment status: unknown

🌍 Creating public domain for deployed service...

🌍 Creating public domain for service via REST API

πŸ“‹ Project ID: 988955f1-b574-4294-bd80-af1ee9fd5943

πŸ“‹ Service ID: 76227996-b3f3-495f-bb5a-658477b1c2f1

πŸ”„ REST API endpoint: https://backboard.railway.app/v2/projects/988955f1-b574-4294-bd80-af1ee9fd5943/services/76227996-b3f3-495f-bb5a-658477b1c2f1/domains

πŸ”„ Request payload: { port: 5678 }

πŸ“Š REST API response status: 404

πŸ“Š REST API response headers: {

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

'access-control-allow-origin': 'https://railway.app',

'cf-cache-status': 'DYNAMIC',

'cf-ray': '96c18d474e33ae44-GRU',

connection: 'keep-alive',

'content-length': '9',

'content-type': 'text/plain; charset=utf-8',

date: 'Fri, 08 Aug 2025 19:52:02 GMT',

server: 'cloudflare',

vary: 'Origin, Accept-Encoding',

via: '1.1 google',

'x-ratelimit-limit': '10000',

'x-ratelimit-remaining': '9943',

'x-ratelimit-reset': '2025-08-08T20:44:00.138Z'

}

REST API ERROR: 404 Not Found

Error body: Not Found

πŸ”„ Checking for existing domains...

πŸ” Checking existing domains for service: 76227996-b3f3-495f-bb5a-658477b1c2f1

⚠ Could not list domains: 404

πŸ”„ Trying GraphQL fallback...

πŸ”„ Using Railway GraphQL to force domain creation

Failed to get environment ID: Error: No environments found for service

at RailwayCloudflareBypass.getDefaultEnvironmentId (src/lib/railway-bypass.ts:537:12)

at async RailwayCloudflareBypass.createServiceDomainGraphQL (src/lib/railway-bypass.ts:731:27)

at async RailwayCloudflareBypass.createServiceDomain (src/lib/railway-bypass.ts:667:13)

at async RailwayCloudflareBypass.createProjectWithBypass (src/lib/railway-bypass.ts:125:23)

at async RailwayClient.createInstance (src/lib/railway-client.ts:145:25)

at async POST (src/app/api/n8n/instances/route.ts:283:25)

535 | }

536 |

> 537 | throw new Error('No environments found for service');

| ^

538 |

539 | } catch (error) {

540 | console.error(' Failed to get environment ID:', error);

GraphQL domain creation failed: Error: No environments found for service

at RailwayCloudflareBypass.getDefaultEnvironmentId (src/lib/railway-bypass.ts:537:12)

at async RailwayCloudflareBypass.createServiceDomainGraphQL (src/lib/railway-bypass.ts:731:27)

at async RailwayCloudflareBypass.createServiceDomain (src/lib/railway-bypass.ts:667:13)

at async RailwayCloudflareBypass.createProjectWithBypass (src/lib/railway-bypass.ts:125:23)

at async RailwayClient.createInstance (src/lib/railway-client.ts:145:25)

at async POST (src/app/api/n8n/instances/route.ts:283:25)

535 | }

536 |

> 537 | throw new Error('No environments found for service');

| ^

538 |

539 | } catch (error) {

540 | console.error(' Failed to get environment ID:', error);

⚠ Could not create public domain via REST API

πŸ”„ Getting deployment URL from Railway...

πŸ” Getting service deployment URL for: 76227996-b3f3-495f-bb5a-658477b1c2f1

πŸ“Š Service deployment response: {

"data": {

"service": {

"id": "76227996-b3f3-495f-bb5a-658477b1c2f1",

"name": "n8n",

"deployments": {

"edges": [

{

"node": {

"id": "8fc9ec8f-7503-49f5-9426-30b4bd26ddc1",

"status": "SUCCESS",

"url": null,

"staticUrl": null

}

}

]

}

}

}

}

⚠ No deployment URLs found yet

⏳ Waiting for deployment URL... (attempt 1/8)

πŸ” Getting service deployment URL for: 76227996-b3f3-495f-bb5a-658477b1c2f1

πŸ“Š Service deployment response: {

"data": {

"service": {

"id": "76227996-b3f3-495f-bb5a-658477b1c2f1",

"name": "n8n",

"deployments": {

"edges": [

{

"node": {

"id": "8fc9ec8f-7503-49f5-9426-30b4bd26ddc1",

"status": "SUCCESS",

"url": null,

"staticUrl": null

}

}

]

}

}

}

}

⚠ No deployment URLs found yet

⏳ Waiting for deployment URL... (attempt 2/8)

^C

leonhatori@Leons-MacBook-Pro lawcode.cc %

$10 Bounty

2 Replies

Railway
BOT

10 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!


10 months ago

Apologies but this looks like an issue with the application level code. Due to volume, we can only answer platform level issues.

I've made this thread public so that the community might be able to help with you query.


Status changed to Awaiting User Response Railway β€’ 10 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...