{"record":{"id":"e953d188cc0c2783","repo":"iflytek/astron-agent","slug":"invalid-attempt-to-destructure-non-iterable-instance-in","errorCode":null,"errorMessage":"Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","messagePattern":"Invalid attempt to destructure non-iterable instance\\.\nIn order to be iterable, non-array objects must have a \\[Symbol\\.iterator\\]\\(\\) method\\.","errorType":"exception","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"console/frontend/src/utils/avatar-sdk-web_3.1.2.1002/xrtc-player-BJTnVhG9.js","lineNumber":91,"sourceCode":"            !(r = (s = a.next()).done) &&\n            (i.push(s.value), !t || i.length !== t);\n            r = !0\n          );\n        } catch (e) {\n          ((n = !0), (o = e));\n        } finally {\n          try {\n            r || null == a.return || a.return();\n          } finally {\n            if (n) throw o;\n          }\n        }\n        return i;\n      }\n    })(e, t) ||\n    E(e, t) ||\n    (function () {\n      throw new TypeError(\n        'Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'\n      );\n    })()\n  );\n}\nfunction I(e, t, i, r, n, o, s) {\n  try {\n    var a = e[o](s),\n      c = a.value;\n  } catch (e) {\n    return void i(e);\n  }\n  a.done ? t(c) : Promise.resolve(c).then(r, n);\n}\nfunction T(e) {\n  return function () {\n    var t = this,\n      i = arguments;","sourceCodeStart":73,"sourceCodeEnd":109,"githubUrl":"https://github.com/iflytek/astron-agent/blob/5e758547a83371a5a4b29dadf4ac03e8dd527635/console/frontend/src/utils/avatar-sdk-web_3.1.2.1002/xrtc-player-BJTnVhG9.js#L73-L109","documentation":"Babel-compiled _slicedToArray helper TypeError: the code destructured a value (e.g. via C(e,2)) that is neither an array nor iterable — it lacks [Symbol.iterator]. In this player bundle it typically means an API that was expected to return an array/tuple (e.g. a response or state pair) returned null/undefined or an object.","triggerScenarios":"Thrown at console/frontend/src/utils/avatar-sdk-web_3.1.2.1002/xrtc-player-BJTnVhG9.js:91 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Log the destructured value to find which API returned non-iterable data","Default-guard the value (e.g. x || []) before destructuring","Check SDK response shape assumptions against the actual server payload"],"exampleFix":null,"handlingStrategy":"type-guard","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"}