跳转到内容

PlatformRequestError

平台直连请求失败(code platform_request_failed):status = 网关 HTTP 状态 (0 = 请求未达平台,网络错);platformCode = 网关错误码(音频两端点的错误码族: asr_not_configured / tts_not_configured / *_quota_exceeded / model_not_authorized / bad_request / upstream_error / forbidden …;非 JSON 体降级 http_<status>;网络错 network_error);platformMessage = 网关人话(或网络错 message)。

new PlatformRequestError(
face,
status,
platformCode,
platformMessage,
cause?
): PlatformRequestError;

PlatformAudioFace

number

string

string

unknown

PlatformRequestError

TansrSdkError.constructor

readonly code: SdkErrorCode;

TansrSdkError.code


readonly platformCode: string;

readonly platformMessage: string;

readonly status: number;