Back

help! I've been stuck on this for days, I'm a newbie. C:\Users\>curl -X POST https://cloud.appwrite.

  • 0
  • Functions
  • Cloud
AliLebnani
4 Jan, 2025, 18:35

help! I've been stuck on this for days, I'm a newbie. C:\Userscurl -X POST https://cloud.appwrite.io/v1/functions/1/executions ^ More? -H "Content-Type: application/json" ^ More? -H "X-Appwrite-Project: 1" ^ More? -d "{key1: value1, key2: value2}" {"$id":"1","$createdAt":"2025-01-04T17:44:14.303+00:00","$updatedAt":"2025-01-04T17:44:14.303+00:00","$permissions":[],"functionId":"1","trigger":"http","status":"completed","requestMethod":"POST","requestPath":"","requestHeaders":[],"responseStatusCode":404,"responseBody":"Not Found","responseHeaders":[{"name":"content-type","value":"textplain; charset=utf-8"},{"name":"content-length","value":"9"},{"name":"date","value":"Sat, 04 Jan 2025 17:44:14 GMT"},{"name":"connection","value":"keep-alive"},{"name":"keep-alive","value":"timeout=5"}],"logs":"","errors":"","duration":0.0074760913848877,"scheduledAt":null} (I've attempted to mask the Id's) I keep getting a 404, BUT --- the function DOES exist (I used a stripe template subscription), followed the directions, have set it up a few times --------------------- what could it be / or what is the issue? no matter where I call the project, function from - it fails with this 404(also, although bad practice, I opened up all the roles in case its permissioning) #404

TL;DR
The developer is experiencing a 404 error when trying to run a function on the Appwrite cloud platform. The function exists and has been set up correctly. Despite opening up all roles, the error persists. The issue may lie in incorrect function ID or project ID usage. Make sure they are using the correct IDs for their function and project.
Kenny
4 Jan, 2025, 18:53

Are you sure you are using the correct function id and project id?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more