Do it manually via REST
[SOLVED] Frontend showing Function even though it doesn't exist
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 2: Process
id assume it's too risky to manipulate the db myself?
Rank 2: Process
but it doesnt exist, so the api wont do anything
No. The deployment doesn't exist
Deployment != Function
Just delete the function
Rank 2: Process
oh
Rank 2: Process
curl -X DELETE
'https://[APPWRITE_ENDPOINT]/v1/functions/[FUNCTION_ID]'
-H 'Content-Type: application/json'
-H 'X-Appwrite-Project: [PROJECT_ID]'
-H 'X-Appwrite-Keys: [API_KEY]'
Rank 2: Process
I'd assume this would work?
Rank 2: Process
{"message":"User (role: guests) missing scope (functions.write)","code":401,"type":"general_unauthorized_scope","version":"1.5.10"}%
You made a typo
It should be X-Appwrite-Key
Rank 2: Process
Same issue
Rank 2: Process
the api key i used has all the permissions
Weird. It should say role: applicationswhen you use an api key
Rank 2: Process
ill create a new one
Rank 2: Process
see if that does anything
Rank 2: Process
oop that fixed it
Rank 2: Process
maybe i accidentaly pressed a key at the end o f the other one and it added a character
Rank 2: Process
who knows
Rank 2: Process
Hooray! All fixed!
Rank 2: Process
Tysm :)))
You're welcome 🙂
Rank 2: Process
and that fixed another issue I didn't even know I had lol
Rank 2: Process
[SOLVED] Frontend showing Function even though it doesn't exist