Help
Troubleshooting
Symptoms, causes and fixes, in the order you are most likely to meet them.
Open the browser's developer tools (F12) first: the console shows the player's messages and the reason for most problems.
#Nothing appears
| Check | Fix |
|---|
typeof Aimigo in the console is "undefined" | the script tag did not load: wrong address, blocked by an ad blocker, or by your Content Security Policy (script-src, see host page requirements) |
console shows a CSP error with frame-src | allow the player host in frame-src |
Aimigo.default is undefined | the tag has data-auto="false", or your code runs before DOMContentLoaded |
| the frame exists but stays empty | first visit: the engine is still downloading (watch the network tab); otherwise see "never ready" |
the page is plain http:// on a real domain | use https; the player's cache needs a secure context |
#dh.ready never resolves or rejects
| Symptom | Cause | Fix |
|---|
| rejects with a message | the player could not start or the initial stage failed | the message names the cause, e.g. CharacterNotFound (wrong data-character) |
| hangs, older browser | WebGL 2 is required | update the browser; check chrome://gpu |
| hangs on a phone | not enough memory | close other tabs; use a smaller frame |
#No sound
| Cause | Fix |
|---|
| no user interaction yet | call speak from a click handler |
speak({ audioUrl }) rejects with "Audio download failed" | the audio URL is not readable by the page: same origin or Access-Control-Allow-Origin on the audio server; allow its origin in connect-src |
Permissions-Policy: autoplay=() on your page | remove autoplay from that header |
| audio format | MP3 or WAV work everywhere; OGG not in Safari |
#Commands fail
| Error | Meaning | Fix |
|---|
PermissionDenied | the command is not released for users | permissions |
CommandNotFound | unknown name or not visible for your role | aimigo.commands.search { query } |
InvalidInput | missing or wrong field | aimigo.commands.get { name } shows the schema |
… timed out | no answer within 30 s | wait for dh.ready before calling; pass a longer timeout as third argument of dh.call |
the command answers started but nothing changes | the transition is still running or failed later | listen for the event named in completionEvent and read data.errorCode |
#Personal links
| Symptom | Fix |
|---|
await dh.contact is null | the link has no id, the id is not in the _id column, or the page is not in allowedOrigins of your sheet link |
| greeting in the wrong language | column Language: German greets in German, every other value in English |
| AI notes do not appear in the sheet | the sheet is not shared with the service account as Editor, or the tab is not named Data_for_Code |
#Slow on every site
The download is shared across sites only in Chrome and Edge with third-party cookies allowed (performance). The player's started message tells you what it got: storage: 'shared' or 'partitioned'.
#Still stuck
Collect: the page address, the browser and version, the console output from the first Aimigo message on, and the result of Aimigo.version. Send it to Avataris support (contact on the imprint page).
This page as Markdown · llms.txt · All docs in one file