Closed ScreamZ closed 5 years ago
Hi @ScreamZ ,
Thanks you for your feedback! This will be fixed by this PR: https://github.com/kuzzleio/sdk-javascript/pull/420 (explanation are in the PR description)
Closed, resolved by https://github.com/kuzzleio/sdk-javascript/pull/420
@Aschen when i'm offline, i want to catch an error. This code never resolve: i can't catch this error.
try {
await kuzzle.document.create("xxx", "xxx", xxx);
} catch (error) {
console.log(error);
}
Chrome console return me :
OPTIONS http://localhost:7512/xxx/xxx/_create net::ERR_INTERNET_DISCONNECTED
Hi @Kafigueiredo ,
There was a promise-leak occuring on network disconnection, this should be resolved by https://github.com/kuzzleio/sdk-javascript/pull/427
(not yet released on npm)
I'm building an offline app as PWA.
Doing this while switching network offline or stopping kuzzle server
results in
:7512/:1 GET http://localhost:7512/ net::ERR_INTERNET_DISCONNECTED
will crash the client which is unable to catch the following error thrown by connect.
Related
connect
seems causing issues.