iflytek/astron-agent · error · X

AUTHORIZATION_FAILED

AUTHORIZATION_FAILED

Error message

Authorization failed: /api/v1/app/config/get?appId

What it means

Error from the SDK's getAppConfig fetch to /api/v1/app/config/get: the server responded with a 401/403-class status, so the request URL is prefixed 'Authorization failed:'. Indicates invalid appId/appKey/privateKey signature or expired credentials when fetching avatar app configuration.

Solutions

  1. Verify appId, appKey and signature generation (privateKey) are correct and current
  2. Check server auth service availability and clock skew for signed requests
  3. Regenerate credentials for the avatar app in the management console
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at console/frontend/src/utils/avatar-sdk-web_3.1.2.1002/xrtc-player-BJTnVhG9.js:13002 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of iflytek/astron-agent@5e758547a8 (2026-09-12). Data as JSON: /api/errors/a5976aa8bd2f03cf. Report an issue: GitHub.

Appendix: source

Thrown at console/frontend/src/utils/avatar-sdk-web_3.1.2.1002/xrtc-player-BJTnVhG9.js:13002

                    i.extendInfo.location &&
                    (a += '&location='.concat(i.extendInfo.location)),
                  t && ((i.privateKey = t), (a += '&privateKey='.concat(t))),
                  (c = function () {
                    return fetch(a, {
                      method: 'GET',
                      headers: o,
                      signal: s.signal,
                    });
                  }),
                  r.abrupt(
                    'return',
                    Promise.race([
                      i.timeoutPromise(i.timeout, s, 'getAppConfig'),
                      c(),
                    ])
                      .then(function (e) {
                        if (e.ok) return e.json();
                        throw new X(
                          401 === e.status
                            ? {
                                code: B.AUTHORIZATION_FAILED,
                                message:
                                  'Authorization failed: /api/v1/app/config/get?appId',
                              }
                            : 404 === e.status
                              ? {
                                  code: B.GET_SERVER_NODE_FAILED,
                                  message: '404: /api/v1/app/config/get?appId',
                                }
                              : 408 === e.status
                                ? {
                                    code: B.REQUEST_TIMEOUT,
                                    message: ''.concat(
                                      e.statusText,
                                      ': /api/v1/app/config/get?appId'
                                    ),

View on GitHub (pinned to 5e758547a8)