Back

node-appwrite - Index length is longer than the maximum: 768

  • 0
  • Databases
  • Web
sukuna7193
27 Apr, 2024, 14:45

Hello guys i have this issu when trying to create index with the combination of three attributs using node-appwrite package but i have this error : AppwriteException [Error]: Index length is longer than the maximum: 768 at Client.call ([my_url]/node_modules/node-appwrite/lib/client.js:171:31) at processTicksAndRejections (node:internal/process/task_queues:95:5) at async Databases.createIndex ([my_url]/node_modules/node-appwrite/lib/services/databases.js:1245:16) { code: 400, type: 'index_invalid', response: { message: 'Index length is longer than the maximum: 768', code: 400, type: 'index_invalid', version: '1.5.4' } }

this is the attributs that are use to create index ("ip_address", "user_agent", "post_id" ) and the filter key is filter

TL;DR
Developers are experiencing an issue with creating an index in node-appwrite due to the total length of the attributes exceeding the limit of 768 characters. The error message received is "Index length is longer than the maximum: 768." To resolve this, developers should reduce the total length of the attributes being used for the index creation.
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