This post is somewhat strange, I've spent hours and hours trying to figure out what the problem is with why my function ignores the entire appwrite part.
I'm making a stripe webhook that then updates a document of the user with some values.
The problem is that the function ignores the entire appwrite part, it is as if it did not exist, I don't understand what is happening.
The stripe part works fine but it's like the appwrite part is invisible code
Heres my code: https://pastebin.com/raw/MGUdMi5h
Also im using appwrite cloud and node-appwrite version 11.0.0
I also made sure that the .env files are correct. I attach an image of the log that I put after the userPlan, it should not be executed since inside the userPlan there is return res.json({}) π€
Because you're using then, that code doesn't execute right away...and then you return.
I highly suggest avoiding using then as it can be confusing and lead to deeply nested code
thanks Steven, I'll try that
Recommended threads
- How to use dart workspaces to deploy a f...
Hello, I'm developing a Flutter application and I would like to leverage dart pub workspaces to deploy a function with a dart runtime as advertised here : http...
- Enabling Overage Usage
Hello Appwrite Support Team, I am currently using Appwrite under the GitHub Student Developer Pack plan. Recently, my project hit the database read limit, and ...
- appwrite-docs MCP fails in Cursor β SSE ...
Hi team, I'm having trouble getting the hosted Appwrite docs MCP working in Cursor on Windows. Environment IDE: Cursor (latest) OS: Windows 11 Node: v24.15.0 ...