iflytek/astron-agent · error · Error
onCustomSignParam.getQuery is not a object
Error message
onCustomSignParam.getQuery is not a object
What it means
Second getQuery error variant: thrown when the getQuery field itself is not an object (earlier type check fails, e.g. missing or wrong type on onCustomSignParam). Same query-parameter contract violation during avatar authentication.
Solutions
- Ensure onCustomSignParam.getQuery exists and is a plain object
- Default to {} when no custom query is needed
- Type-check the sign param configuration at startup
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at console/frontend/src/utils/avatar-sdk-web_3.1.2.1002/xrtc-player-BJTnVhG9.js:12944 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/b272bbe14a5af4a1.
Report an issue: GitHub.
Appendix: source
Thrown at console/frontend/src/utils/avatar-sdk-web_3.1.2.1002/xrtc-player-BJTnVhG9.js:12944
'[object Object]' !== Object.prototype.toString.call(r))
) {
t.next = 14;
break;
}
for (n = '', o = 0, s = Object.entries(r); o < s.length; o++)
((a = C(s[o], 2)),
(c = a[1]),
(n += '&'.concat(a[0], '=').concat(c)));
return t.abrupt('return', n.slice(1));
case 14:
throw new Error(
'onCustomSignParam.getQuery result is not an object'
);
case 15:
t.next = 18;
break;
case 17:
throw new Error('onCustomSignParam.getQuery is not a object');
case 18:
t.next = 21;
break;
case 20:
return t.abrupt('return', '');
case 21:
case 'end':
return t.stop();
}
}, t);
})
)();
},
baseUrl: function (e) {
return e.includes('https://') || e.includes('http://')
? e
: ''.concat(this.ssl ? 'https://' : 'http://').concat(e);
},View on GitHub (pinned to 5e758547a8)