R
Railway•10mo 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•10mo ago
Project ID: 1822d872-71ac-496f-9a36-5cdefab7617c
Brody
Brody•10mo ago
is this a template on a team?
Nafi
NafiOP•10mo ago
yes
Brody
Brody•10mo ago
does the url have the team id in it?
Nafi
NafiOP•10mo ago
no
Brody
Brody•10mo ago
add it ?teamId=<team id>
Nafi
NafiOP•10mo ago
Where do I find the team id?
Brody
Brody•10mo 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
NafiOP•10mo ago
what a fun process
Brody
Brody•10mo ago
its easy enough haha
Nafi
NafiOP•10mo 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•10mo ago
i opened up dev tools
Nafi
NafiOP•10mo ago
ah sneaky
Brody
Brody•10mo ago
the path you would want is /account/templates?teamId=<team id>
Nafi
NafiOP•10mo ago
same error okay it changes when i refreshed
Nafi
NafiOP•10mo ago
new error
No description
Nafi
NafiOP•10mo ago
(upon deletion attempt)
Brody
Brody•10mo ago
okay i can reproduce will flag
Duchess
Duchess•10mo 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