Skip to content
Back

incrementDocumentAttribute throwing "Route not found" on Node SDK 17.2.0 with Appwrite 1.7.4

  • 0
  • Self Hosted
  • Databases
Bielframos
14 Aug, 2025, 20:50

Hi, I’m running into an issue when trying to increment a numeric field using the Node.js SDK. My environment:

Appwrite: self-hosted, version 1.7.4 node-appwrite: version 17.2.0

Code snippet:

TypeScript
ctx.databases.incrementDocumentAttribute(
  'MAIN_DB',
  'CONVERSATIONS',
  conversationId,
  'messagesCount',
  1
);

Error message:

AppwriteException: Route not found. Please ensure the endpoint is configured correctly and that the API route is valid for this SDK version. Refer to the API docs for more details. at _Client.call (...)

From the docs and changelog, I thought incrementDocumentAttribute was already supported in recent SDK versions, but it seems this route might not exist in the 1.7.4 API.

Thanks in advance!

TL;DR
Issue: Trying to increment a numeric field using the Node.js SDK, but encountering a "Route not found" error with Appwrite version 1.7.4 and node-appwrite version 17.2.0. Solution: The incrementDocumentAttribute route may not exist in the 1.7.4 API. Check the API docs and SDK version compatibility for more information.
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