tmilar/meli-manager

Long spreadsheet writing operations can turn into an unhandled exception.

tmilar opened this issue · 0 comments

The current spreadsheet library doesn't handle a rare scenario when the spreadsheet given locks are lost.

To reproduce, call /order?store=true endpoint (with no dates limiter) to get a large operations writing request, then wait for this case to hit.

Also, the same library not only doesn't handle this error, but also uses some weird setTimeout callbacks in it's implementation, therefore, using this after promisifying doesn't allow to handle this exception which bubbles to the event loop itself and breaks the application.
.
I'll provide logs/screenshots/more references later.