bbgun
bbgun
RRailway
Created by bbgun on 8/16/2024 in #✋|help
Error on environmentCreate GraphQL Mutation
Hi, I have a Github Action that deploys PRs to Railway. It's based on https://github.com/Faolain/railway-pr-deploy with some changes that I made. It has been working great up until the last week or so, it appears as if something changed with the API, and ever since I'm getting the following error:
{
"response": {
"errors": [
{
"message": "Cannot create trigger for repo user does not have access to",
"locations": [{ "line": 3, "column": 9 }],
"path": ["environmentCreate"],
"extensions": { "code": "INTERNAL_SERVER_ERROR" },
"traceId": "5441697194652517304"
}
],
"data": null,
"status": 200,
"headers": {}
},
"request": {
"query": "\n mutation environmentCreate($input: EnvironmentCreateInput!) {\n environmentCreate(input: $input) {\n id\n name\n createdAt\n deploymentTriggers {\n edges {\n node {\n id\n environmentId\n branch\n projectId\n }\n }\n }\n serviceInstances {\n edges {\n node {\n id\n domains {\n serviceDomains {\n domain\n id\n }\n }\n serviceId\n }\n }\n }\n }\n }\n ",
"variables": {
"input": {
"name": "***",
"projectId": "***",
"sourceEnvironmentId": "***"
}
}
}
}
{
"response": {
"errors": [
{
"message": "Cannot create trigger for repo user does not have access to",
"locations": [{ "line": 3, "column": 9 }],
"path": ["environmentCreate"],
"extensions": { "code": "INTERNAL_SERVER_ERROR" },
"traceId": "5441697194652517304"
}
],
"data": null,
"status": 200,
"headers": {}
},
"request": {
"query": "\n mutation environmentCreate($input: EnvironmentCreateInput!) {\n environmentCreate(input: $input) {\n id\n name\n createdAt\n deploymentTriggers {\n edges {\n node {\n id\n environmentId\n branch\n projectId\n }\n }\n }\n serviceInstances {\n edges {\n node {\n id\n domains {\n serviceDomains {\n domain\n id\n }\n }\n serviceId\n }\n }\n }\n }\n }\n ",
"variables": {
"input": {
"name": "***",
"projectId": "***",
"sourceEnvironmentId": "***"
}
}
}
}
If it matters, I'm using a global token (ie from my account settings, not a project settings). Would appreciate any help with this!
42 replies
RRailway
Created by bbgun on 6/3/2024 in #✋|help
GraphQL API Error 504 when creating environment
Hello, I'm using https://github.com/Faolain/railway-pr-deploy/tree/v2.0.4 to create PR preview environment on Railway. Unfortunately I'm getting some 504 errors (see attached), seems like an API issue? Any help would be appreciated.
3 replies
RRailway
Created by bbgun on 4/26/2024 in #✋|help
Download built image from railway or ssh access to service.
Hey folks. I'm debugging an issue with my deployment and it would really help if there was a way to have ssh access to my service or to download the docker image and run some commands on it. Is that something that's possible? My issue is with the following package https://github.com/cloudflare/html-rewriter-wasm Locally it works but I think that due to how its built the following line messes with the bundler:
const { awaitPromise, setWasmExports, wrap } = require(String.raw`./asyncify.js`);
const { awaitPromise, setWasmExports, wrap } = require(String.raw`./asyncify.js`);
and asyncify.js is missing from the end bundle which causes the following error on my deployed service:
⨯ Error: Cannot find module './asyncify.js'
⨯ Error: Cannot find module './asyncify.js'
I verified that by using patch-packages and on my locally built docker the file is now present, however the issue persists on the railway built and deployed Would appreciate any help on this 🙂
26 replies