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?
Summary
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
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
Rank 3: Container
Sep 10, 2023, 06:48
could it be a bug in the node-appwrite version?
Drake
Sep 10, 2023, 06:53
Does your endpoint include the /v1?
Drake
Sep 10, 2023, 06:55
Maybe you can log the variables and purchaseID to make sure they're set correctly
ianmont
Rank 3: Container
Sep 10, 2023, 06:56
oh no i miss that, let me change the endpoint and try again
ianmont
Rank 3: Container
Sep 10, 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
Sep 10, 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
Rank 3: Container
Sep 10, 2023, 07:08
that works
ianmont
Rank 3: Container
Sep 10, 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
Rank 3: Container
Sep 10, 2023, 07:23
everything is fine Steven, thank you very much, the problem is solved