2 months ago
The variables are updated (checking from the WEB UI) but the api times out and responds with a 504 which makes automation impossible
3 Replies
2 months ago
Can you share your request?
I highly doubt this is an issue with your code. 504 means it's Railway's fault. I would share your request to help them solve the issue.
here it is in a curl format that I used for testing.. always a 504:
curl -sS -X POST https://backboard.railway.app/graphql/v2 -H "Authorization: Bearer $RAILWAYTOKEN" -H "Content-Type: application/json" --data-binary '{"query":"mutation($in: VariableUpsertInput!){ variableUpsert(input:$in) }","variables":{"in":{"projectId":"441265b9-6ce4-46d2-97b1-a83013dcb912","environmentId":"92fae213-c52f-45ce-85ed-01b83e9b263e","serviceId":"0b122693-8921-4ee0-b4fc-51e7e93d9bbd","name":"TENANTSECRET","value":"c85677626aa9de50c912decb74235bf4a7616e9cc0a897b6e3956e70d8f5dfec"}}}'
2 months ago
Please use code blocks, and I hope that secret value isn't valid.
curl -X POST https://backboard.railway.app/graphql/v2 -H 'Authorization: Bearer $RAILWAY_TOKEN' -H 'Content-Type: application/json' -d '{"query": "mutation($in: VariableUpsertInput!){ variableUpsert(input:$in) }", "variables": {"in": {"projectId": "441265b9-6ce4-46d2-97b1-a83013dcb912", "environmentId": "92fae213-c52f-45ce-85ed-01b83e9b263e", "serviceId": "0b122693-8921-4ee0-b4fc-51e7e93d9bbd", "name": "TENANT_SECRET", "value": "9f8a635876518958379b97655cd8e1bdbd8bc87cbdee38f140da26da14f80775"}}}'`
Don't worry about the secrets.. they will be overwritten on every run
2 months ago
Hey, what's going on???? We cannot deploy new services anymore because the API is failing