diff options
Diffstat (limited to 'lib/api.js')
-rw-r--r-- | lib/api.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -65,6 +65,12 @@ function send_this(data) { .then(response => response.json()) .then(async response => { switch(response.error?.code) { + //case 401: // 401 means a server reset happened + // close database file + // rm database file + // logrotate + // spawnSync + // break; case 429: // 429 means rate limited, let's hold back for 10 seconds await sleep(10000); queue.enqueue(data, 1); |