Or Preview
Problem updating a document
Votes
0
Replies
24
Participants
Unknown
Messages
25
And also the rest of that part
Rank 3: Container
Heres the response tab
Rank 3: Container
heres the preview tab
It's probably due to some database operations.
But it will require
core member approval
Rank 3: Container
heres the rest of the headers tab
So no problem from the rate limit one
If it's happened randomly then it just make more sense that it has to something with DB operations as your code logic looks correct.
Let's see what Steven would say
Rank 3: Container
alright, thank you binyamin
Rank 3: Container
I'll wait for Steven 
Rank 3: Container
Hello @Steven , sorry for tagging you, I want to know if you have knowledge of this error? :appwritecheers:
what's our project id?
Rank 3: Container
the project id 64da8ed68873cbb8ec7b its on appwrite cloud
Rank 3: Container
version 1.1.2
there's a bug with rate limits. can you put a slight delay between your 2 update calls?
Rank 3: Container
Yes, like how many seconds would the delay be?
Also i have several functions that update documents at the same time, do I have to add the delay to everything?
you can try 5 ms and then increase if you're still seeing the problem. yes, they'll all need a delay at the moment
Rank 3: Container
alright, is this a cloud-only problem?
ya i think we've fixed this in newer versions
Rank 3: Container
Ok and a question, when will appwrite cloud be updated to new versions?
Soon
Rank 3: Container
alright thanks steven
Rank 3: Container
Steven I have a question
What happens if I have functions like this
const function = databases.createDocument(database, collection, id, {})
function.then(function(response) {
// here the rest of the code
})
do i have to add delay to the one inside the function response?
or not that one because it doesn't start until the one above is fulfilled
Rank 3: Container
For example, in this there are two separate functions, not inside the then() and it causes the error and that is why I have to put the delay, but if I put them one after the other inside a then(// here the other function). Works?
No delay needed