fix(core): updated error reporting url
This commit is contained in:
parent
7235240bac
commit
ecddcad012
1 changed files with 2 additions and 2 deletions
|
@ -5,10 +5,10 @@ import type { Logger } from './logger.js'
|
||||||
export function reportUnknownError(log: Logger, error: tl.RpcError, method: string): void {
|
export function reportUnknownError(log: Logger, error: tl.RpcError, method: string): void {
|
||||||
if (typeof fetch !== 'function') return
|
if (typeof fetch !== 'function') return
|
||||||
|
|
||||||
fetch(`https://rpc.pwrtelegram.xyz/?code=${error.code}&method=${method}&error=${error.text}`)
|
fetch(`https://report-rpc-error.madelineproto.xyz/?code=${error.code}&method=${method}&error=${error.text}`)
|
||||||
.then(r => r.json())
|
.then(r => r.json())
|
||||||
.then((r) => {
|
.then((r) => {
|
||||||
if (r.ok) {
|
if (r.result) {
|
||||||
log.info('telerpc responded with error info for %s: %s', error.text, r.result)
|
log.info('telerpc responded with error info for %s: %s', error.text, r.result)
|
||||||
} else {
|
} else {
|
||||||
log.info(
|
log.info(
|
||||||
|
|
Loading…
Reference in a new issue