Replace /.tokens with /.health and /.accounts

This commit is contained in:
Zed
2023-10-31 12:04:32 +00:00
parent 089275826c
commit 4120558649
7 changed files with 86 additions and 49 deletions

View File

@@ -1,7 +1,7 @@
# SPDX-License-Identifier: AGPL-3.0-only
import httpclient, asyncdispatch, options, strutils, uri, times, math, tables
import jsony, packedjson, zippy, oauth1
import types, tokens, consts, parserutils, http_pool
import types, auth, consts, parserutils, http_pool
import experimental/types/common
const
@@ -120,7 +120,7 @@ template fetchImpl(result, fetchBody) {.dirty.} =
except OSError as e:
raise e
except Exception as e:
let id = if account.isNil: "null" else: account.id
let id = if account.isNil: "null" else: $account.id
echo "error: ", e.name, ", msg: ", e.msg, ", accountId: ", id, ", url: ", url
raise rateLimitError()
finally: