Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion triggers/set-online-status.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ async function setOnlineStatus({ vk }) {
await vk.api.account.setOnline();
console.log('Online status is set');
} catch (error) {
console.log('Could not set online status', error);
if (error.name === 'AbortError' || error.type === 'aborted') {
console.log('Could not set online status: Request timed out (AbortError). This is usually temporary and will retry on next interval.');
} else {
console.error('Could not set online status:', error);
}
}
}

Expand Down