Back

[SOLVED] Error on Appwrite Function

  • 0
  • Functions
ianmont
10 Sep, 2023, 05:29

Im using appwrite cloud and i got weird error running my function:

{"code":404,"type":"general_route_not_found","response":{"message":"Not Found","code":404,"type":"general_route_not_found","version":"0.10.52"}

So the appwrite function is simple it recevies 3 parameters on the payload. A fileID a document ID and a variable to update the document ID, so basically is just for updating a document.

What does that error means?

TL;DR
The user had an error on their Appwrite function, but it has been solved. They were missing the /v1 in their endpoint. They are now facing another problem with their code and will update once they solve it. Someone suggests using browser dev tools to remove a pattern on the input for client-side validation. The user asks for help with a cron expression error on their code. They realize they missed something and will try again. Another suggestion is to log variables and make sure they're set correctly. The user confirms that their endpoint includes /v1. They suspect a bug in the node-appwrite version but everything seems to be set
safwan
10 Sep, 2023, 05:41

Can you share the function code?

ianmont
10 Sep, 2023, 05:42

Yes let me upload it somewhere

ianmont
10 Sep, 2023, 05:43
ianmont
10 Sep, 2023, 05:43
ianmont
10 Sep, 2023, 05:43

and this is the package.json

ianmont
10 Sep, 2023, 05:44

I double check the env variables inside the appwrite cloud tab where you set them and everything seems to be fine but it still gives me the same error

ianmont
10 Sep, 2023, 06:48

could it be a bug in the node-appwrite version?

Drake
10 Sep, 2023, 06:53

Does your endpoint include the /v1?

Drake
10 Sep, 2023, 06:55

Maybe you can log the variables and purchaseID to make sure they're set correctly

ianmont
10 Sep, 2023, 06:56

oh no i miss that, let me change the endpoint and try again

ianmont
10 Sep, 2023, 06:59

also, do you know why this doesnt works? its meant to run every 5 minutes but it throws a "please enter a valid cron expression", what im doing wrong with the cron expression?

Drake
10 Sep, 2023, 07:03

There's a bug with the client side validation. You can use the browser dev tools to remove the pattern on the input and then submit

ianmont
10 Sep, 2023, 07:08

that works <:appwriterocket:823996226894692403>

ianmont
10 Sep, 2023, 07:10

I no longer get the same error, I was missing the /v1 but now I have another problem with my code, so I will see how to solve it and I will tell you if I solve it, for now thanks

ianmont
10 Sep, 2023, 07:23

everything is fine Steven, thank you very much, the problem is solved <:appwritefire:823999000330895380>

Drake
10 Sep, 2023, 15:55

[SOLVED] Error on Appwrite Function

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