Duplicates in listed projects
Hello,
I have a problem trying to list the entire projects from Wordbee translator.
Since the API limits the results to 100, I do a loop in my code starting from 0 that I increment by 100 everytime:
1st: ...projects?token=xxx&from=0
2nd: ...projects?token=xxx&from=100
3rd: ...projects?token=xxx&from=200
and so forth until I get less than 100 results.
I concatenate the results from each call to obtain a complete list. The problem is: although the projects count matches what I expect, the result is missing some projects and these are replaced by a duplicate of another project (hence the matching count). I checked everything manually in the wordbee project list and nothing seems wrong with the missing or duplicated projects...
I used the same API requests in Postman and I indeed got duplicates so I don't think it's in my code.
Am I at least using this API call the right way?
Thanks for the help :)
-
Hi Alex,
Thank you for the detailed description. Results are retrieved from the database without specific order. This can produce incorrect results due to the internal mechanisms of query optimization. Although we never experienced this so far.
We are going to sort projects with most recent first and this should resolve the issue. It will be released Monday or Tuesday.
Regards,
Stephan
0 -
Hi Stephan,
Glad to hear this, can't wait already :)
0
U moet u aanmelden om een opmerking te plaatsen.
Opmerkingen
2 opmerkingen