Hi Sebastian,
could you try to replace the following part of the example:
}).finally(function() {
reportProgress('Disconnecting...');
context.connection.disconnect();
});
with this block:
}).finally(function() {
reportProgress('Disconnecting...');
if (context.connection) {
context.connection.disconnect();
}
});
and see if it works better for you?
If it does, then most probably the call to „createConnection“ failed, resulting in an undefined „context.connection“.
Best regards,
Daniel
Sent with Mail Pilot