R
Railway•9mo ago
Nafi

Cannot delete unpublished template

When I try to delete an old template I get this error Error Not Authorized:
{"response":{"errors":[{"message":"Not Authorized","locations":[{"line":2,"column":3}],"path":["templateDelete"],"extensions":{"code":"INTERNAL_SERVER_ERROR","exception":{"status":400}}}],"data":null,"status":200,"headers":{}},"request":{"query":"mutation templateDelete($id: String!) {\n templateDelete(id: $id)\n}","variables":{"id":"1822d872-71ac-496f-9a36-5cdefab7617c"}}}
{"response":{"errors":[{"message":"Not Authorized","locations":[{"line":2,"column":3}],"path":["templateDelete"],"extensions":{"code":"INTERNAL_SERVER_ERROR","exception":{"status":400}}}],"data":null,"status":200,"headers":{}},"request":{"query":"mutation templateDelete($id: String!) {\n templateDelete(id: $id)\n}","variables":{"id":"1822d872-71ac-496f-9a36-5cdefab7617c"}}}
Solution:
PR merged. Should be live in ~10m.
Jump to solution
22 Replies
Percy
Percy•9mo ago
Project ID: 1822d872-71ac-496f-9a36-5cdefab7617c
Brody
Brody•9mo ago
is this a template on a team?
Nafi
Nafi•9mo ago
yes
Brody
Brody•9mo ago
does the url have the team id in it?
Nafi
Nafi•9mo ago
no
Brody
Brody•9mo ago
add it ?teamId=<team id>
Nafi
Nafi•9mo ago
Where do I find the team id?
Brody
Brody•9mo ago
good question, the dashboard will make a me graphql query when you refresh the page, the result of that query will contain your team id
Nafi
Nafi•9mo ago
what a fun process
Brody
Brody•9mo ago
its easy enough haha
Nafi
Nafi•9mo ago
I added the team id to the query parameter of the template url and nothing happened also how do you know this 😂
Brody
Brody•9mo ago
i opened up dev tools
Nafi
Nafi•9mo ago
ah sneaky
Brody
Brody•9mo ago
the path you would want is /account/templates?teamId=<team id>
Nafi
Nafi•9mo ago
same error okay it changes when i refreshed
Nafi
Nafi•9mo ago
new error
No description
Nafi
Nafi•9mo ago
(upon deletion attempt)
Brody
Brody•9mo ago
okay i can reproduce will flag
Duchess
Duchess•9mo ago
Thread has been flagged to Railway team by @Brody.
JustJake
JustJake•9mo ago
Raised to team
Linear
Linear•9mo ago
Found issue PRO-1930.
PRO-1930 - Cannot delete unpublished template on team account
Escalated from Brody. User cannot delete unpublished template on team account.
Status
Triage
Product
Solution
Faraz
Faraz•9mo ago
PR merged. Should be live in ~10m.
Want results from more Discord servers?
Add your server