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

7 months ago

white_check_mark emoji Service deployment initiated

hourglass_flowing_sand emoji Waiting for deployment to stabilize...

bar_chart emoji Current deployment status: unknown

earth_africa emoji Creating public domain for deployed service...

earth_africa emoji Creating public domain for service via REST API

clipboard emoji Project ID: 988955f1-b574-4294-bd80-af1ee9fd5943

clipboard emoji Service ID: 76227996-b3f3-495f-bb5a-658477b1c2f1

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

arrows_counterclockwise emoji Request payload: { port: 5678 }

bar_chart emoji REST API response status: 404

bar_chart emoji 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'

}

x emoji REST API ERROR: 404 Not Found

x emoji Error body: Not Found

arrows_counterclockwise emoji Checking for existing domains...

mag emoji Checking existing domains for service: 76227996-b3f3-495f-bb5a-658477b1c2f1

warning emoji Could not list domains: 404

arrows_counterclockwise emoji Trying GraphQL fallback...

arrows_counterclockwise emoji Using Railway GraphQL to force domain creation

x emoji 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('x emoji Failed to get environment ID:', error);

x emoji 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('x emoji Failed to get environment ID:', error);

warning emoji Could not create public domain via REST API

arrows_counterclockwise emoji Getting deployment URL from Railway...

mag emoji Getting service deployment URL for: 76227996-b3f3-495f-bb5a-658477b1c2f1

bar_chart emoji 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

}

}

]

}

}

}

}

warning emoji No deployment URLs found yet

hourglass_flowing_sand emoji Waiting for deployment URL... (attempt 1/8)

mag emoji Getting service deployment URL for: 76227996-b3f3-495f-bb5a-658477b1c2f1

bar_chart emoji 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

}

}

]

}

}

}

}

warning emoji No deployment URLs found yet

hourglass_flowing_sand emoji Waiting for deployment URL... (attempt 2/8)

^C

leonhatori@Leons-MacBook-Pro lawcode.cc %

$10 Bounty

2 Replies

Railway
BOT

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


7 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 7 months ago


Loading...