6 months ago
Hey team,
I'm using supabase PR branch environments, which get created successfully in Railway, but im getting errors automatically setting the Env variables with the project reference ID for the supabase branch.
I'm getting consistent 400 errors when trying to use the API for the variableUpsert mutation in my GitHub Actions workflow. Every API call
returns the same generic error message regardless of the payload.
Issue Details:
- API Endpoint: https://backboard.railway.com/graphql/v2
- Mutation: variableUpsert
- HTTP Status: 400
- Error Response: {"errors":[{"message":"Problem processing request","traceId":"..."}]}
Sample Trace IDs:
1831193453476020951
8636374240352281471
7857526073773647685
Sample GraphQL Payload:
{
"query": "mutation variableUpsert { variableUpsert(input: { projectId: \"[PROJECT_ID]\", environmentId: \"06ea58d7-2834-41c0-a6af-7eb7b5a4dcf3\", serviceId:
\"407af286-9c62-4730-b21b-b2d3ab556b95\", name: \"NODE_ENV\", value: \"assay-pr-3\" }) { id name value } }"
}
The same issue occurs for all variable names and values, including simple test variables, suggesting it's not a data validation issue?
Could you help check out the trace ids?
much appreciated,
Ethan
2 Replies
6 months ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open brody • 6 months ago
6 months ago
mutation variableCollectionUpsert($input: VariableCollectionUpsertInput!) {
variableCollectionUpsert(input: $input)
}
6 months ago
{
"query": "mutation variableCollectionUpsert($input: VariableCollectionUpsertInput!) { variableCollectionUpsert(input: $input) }",
"variables": {
"input": {
"projectId": "SEU_PROJECT_ID",
"environmentId": "SEU_ENVIRONMENT_ID",
"serviceId": "SEU_SERVICE_ID",
"variables": {
"NODE_ENV": "assay-pr-3",
"OUTRA_VARIAVEL": "valor-exemplo"
}
}
}
}