Latest SDK 4.4.4 has broke callback version of methods

Starting with SDK 4.4.3 methods using callbacks instead of promises are unusable. For example fetching a document without knowing if the id is existing is impossible as the error is passed normally to the callback but the promise still generate an error, thus I get “unhandledRejection [Document Not Found Error: document not found]”.
Since I don’t use promises I have no way of dealing with it and my code has been stable for a while, don’t want to deal with changing everything to promises and risk new bugs.

Checking the changes it is very likely this is what breaks it:
" JSCBC-1298: Removing the chained promise.then().callback() in PromiseHelper".

I see it has already been reported.

Hi @00christian00 – This should be fixed in the next release (v4.4.5). You can track the work with JSCBC-1311.

I will look to follow-up once the release is GA’d.

1 Like