You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is just for devs to get started. Now, I observed that running seedDatabase() immediately after preparing the db throws error related to attribute recognition . As far as I can tell the database in background is taking some time to be prepared . Waiting for a couple seconds between both functions solves this.
👀 Have you spent some time to check if this issue has been raised before?
What do you mean by - error related to attribute recognition? Can you share the full error/stacktrace?
In most cases, a sleep or pause like logic is not required since all the operations are async and hence the calls are awaited.
Hey @ItzNotABug ,thanks for taking time to look into it. Well , the error was attribute "title" not recognised. This happened when seedDatabase function tried to add documents. Whereas after adding a wait time of couple seconds it was automatically recognised because maybe the backend is taking time to be prepared and then respond accurately to requests. Also I was running a local appwrite instance so maybe my system is slow.
💭 Description
In the quick start guide for node.js-sdk there is a function runAllTasks
async function runAllTasks() { await prepareDatabase(); await seedDatabase(); await getTodos(); } runAllTasks();
This is just for devs to get started. Now, I observed that running seedDatabase() immediately after preparing the db throws error related to attribute recognition . As far as I can tell the database in background is taking some time to be prepared . Waiting for a couple seconds between both functions solves this.
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: