meganz / sdk

MEGA C++ SDK
BSD 2-Clause "Simplified" License
1.33k stars 510 forks source link

Account freezing and getting -3 (API_EAGAIN) #2670

Open adnway opened 5 months ago

adnway commented 5 months ago

Hello,

my issue is not exactly related to your SDK but to your server-side API in general.

We're customers of MEGA since years with a special Pro plan and a very large account (70TB of stored data and millions of files) which leads to a very big file tree.

Sometimes our account gets frozen and all subsequent API requests begin resulting in -3 (API_EAGAIN) error. The freeze can last minutes or even many hours.

We've reviewed our logs and we're not making any API call that could last that long when this happens. Actually, freeze happens randomly, not after a specific API call.

A few days ago we've deleted 7TB of data and tens of thousands of files. Would it be possible that after a few ours your servers start to "clean" you database and this causes the freeze?

Is there any other scenario where your server locks an account while doing some blocking operation that can take this much time?

Is there any limit on the number of API calls a user can make after which your servers start to reply API_EAGAIN?

Thank you for your collaboration.