{"record":{"id":"3823bcd3852f71fe","repo":"iflytek/astron-agent","slug":"invalid-attempt-to-spread-non-iterable-instance-in-order-to","errorCode":null,"errorMessage":"Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","messagePattern":"Invalid attempt to spread 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":133,"sourceCode":"      function a(e) {\n        I(o, r, n, s, a, 'throw', e);\n      }\n      s(void 0);\n    });\n  };\n}\nfunction R(e) {\n  return (\n    (function (e) {\n      if (Array.isArray(e)) return y(e);\n    })(e) ||\n    (function (e) {\n      if ('undefined' != typeof Symbol && Symbol.iterator in Object(e))\n        return Array.from(e);\n    })(e) ||\n    E(e) ||\n    (function () {\n      throw new TypeError(\n        'Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'\n      );\n    })()\n  );\n}\nfunction _(e, t) {\n  if (!(e instanceof t))\n    throw new TypeError('Cannot call a class as a function');\n}\nfunction k(e, t) {\n  for (var i = 0; i < t.length; i++) {\n    var r = t[i];\n    ((r.enumerable = r.enumerable || !1),\n      (r.configurable = !0),\n      'value' in r && (r.writable = !0),\n      Object.defineProperty(e, r.key, r));\n  }\n}","sourceCodeStart":115,"sourceCodeEnd":151,"githubUrl":"https://github.com/iflytek/astron-agent/blob/5e758547a83371a5a4b29dadf4ac03e8dd527635/console/frontend/src/utils/avatar-sdk-web_3.1.2.1002/xrtc-player-BJTnVhG9.js#L115-L151","documentation":"Babel-compiled _toConsumableArray helper TypeError: a spread (...x) was applied to a value that is neither array-like nor iterable. Same class of failure as the destructure error — a null/undefined/plain-object where an array was expected inside the xrtc player bundle.","triggerScenarios":"Thrown at console/frontend/src/utils/avatar-sdk-web_3.1.2.1002/xrtc-player-BJTnVhG9.js:133 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the spread source is always an array (default to [] when absent)","Inspect which callee passes the bad value","Verify upstream API/SDK responses match expected array shapes"],"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"}