I'm encountering a persistent issue where one of my functions, acting as a webhook endpoint, is not executing the latest active deployment when triggered by an external service.
Environment:
Appwrite Version: Appwrite Cloud
Function Runtime: Node.js (using ES Modules)
Trigger Type: External HTTP POST request from the Razorpay payment gateway.
Problem Description: I have an Appwrite Function (verifyPayment) that serves as a webhook to confirm payments from Razorpay. The function has been deployed and has public execute access (any).
When I trigger the function manually from the Appwrite Console ("Execute now"), it correctly runs the latest active deployment.
However, when the function is triggered by the Razorpay webhook (an external POST request to the function's domain), it consistently executes an old, cached version of the code.
What's the correct URL format for triggering a function as a webhook endpoint in Appwrite Cloud? Should I be using a different domain or format?
Recommended threads
- Charged after Downgrade
I downgraded from the pro plan last month, but it’s still trying to charge my card this month and my account has been restricted
- Sydney Cloud Sites: App Git deployment a...
Project ID: rentwize-db The app Site fails after the build completes with a missing build archive error. Site id: app Framework: TanStack Start SSR Output dir...
- Active Running Project Deletion Alert Em...
Hi , I received an email alert from Appwrite today stating “your project will be deleted within 14 days if no action is taken,” though I have been actively usin...