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?
Can you share the function code?
Yes let me upload it somewhere
and this is the package.json
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
could it be a bug in the node-appwrite version?
Does your endpoint include the /v1?
Maybe you can log the variables and purchaseID to make sure they're set correctly
oh no i miss that, let me change the endpoint and try again
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?
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
that works <:appwriterocket:823996226894692403>
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
everything is fine Steven, thank you very much, the problem is solved <:appwritefire:823999000330895380>
[SOLVED] Error on Appwrite Function
Recommended threads
- HTTP POST to function returning "No Appw...
Hi everyone, I’m running into an issue with my self-hosted Appwrite instance. I’ve set up my environment variables (APPWRITE_FUNCTION_PROJECT_ID, APPWRITE_FUNC...
- Can't add dart 3.5 runtime
Modified the `.env` to enable dart 3.5 runtime on my self-hosted instance but still can't find the runtime when creating a new function. I manually pulled the i...
- How to verify an user using AppWrite Fun...
I have seen similar questions but none whose solutions serve me. I have a function to verify a user with their secret and their id: https://blahblah.appwrite.gl...