{"record":{"id":"60fa0e711d3a4190","repo":"iflytek/astron-agent","slug":"oncustomsignparam-getheader-is-not-a-object","errorCode":null,"errorMessage":"onCustomSignParam.getHeader is not a object","messagePattern":"onCustomSignParam\\.getHeader is not a object","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"console/frontend/src/utils/avatar-sdk-web_3.1.2.1002/xrtc-player-BJTnVhG9.js","lineNumber":12877,"sourceCode":"                }\n                return t.abrupt(\n                  'return',\n                  new Headers(\n                    Ei(\n                      { 'Content-Type': 'application/json', appKey: e.appKey },\n                      r\n                    )\n                  )\n                );\n              case 12:\n                throw new Error(\n                  'onCustomSignParam.getHeader result is not an object'\n                );\n              case 13:\n                t.next = 16;\n                break;\n              case 15:\n                throw new Error('onCustomSignParam.getHeader is not a object');\n              case 16:\n                t.next = 19;\n                break;\n              case 18:\n                return t.abrupt(\n                  'return',\n                  new Headers({\n                    'Content-Type': 'application/json',\n                    appKey: e.appKey,\n                    Authorization: e.authorization,\n                    userId: e.userId,\n                  })\n                );\n              case 19:\n              case 'end':\n                return t.stop();\n            }\n        }, t);","sourceCodeStart":12859,"sourceCodeEnd":12895,"githubUrl":"https://github.com/iflytek/astron-agent/blob/5e758547a83371a5a4b29dadf4ac03e8dd527635/console/frontend/src/utils/avatar-sdk-web_3.1.2.1002/xrtc-player-BJTnVhG9.js#L12859-L12895","documentation":"Second variant of the getHeader check: thrown on a different code path when onCustomSignParam.getHeader is not an object at all (the type check fails before the toString check). Same contract violation — the app's header hook did not return a plain object.","triggerScenarios":"Thrown at console/frontend/src/utils/avatar-sdk-web_3.1.2.1002/xrtc-player-BJTnVhG9.js:12877 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure getHeader is defined and returns a plain object","Handle the case where getHeader is omitted — provide defaults","Add a type check on the SDK config before initialization"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5e758547a83371a5a4b29dadf4ac03e8dd527635","analyzedAt":"2026-09-12T08:03:51.356Z","contentChangedAt":"2026-09-12T08:03:51.356Z","schemaVersion":2},"datasetVersion":"2026-09-19T12:17:13.211Z"}