Jhonatan Teixeira
06/26/2025, 9:47 AMgd-ai-assistant
release, is there anyone specialist in this area available to help?Michael Ullock
06/26/2025, 10:05 AMJhonatan Teixeira
06/26/2025, 10:09 AMimport(
`${data['good_data_url']}/components/tigerBackend.js`
).then(response => {
const { default: factory, TigerJwtAuthProvider } = response;
// {{ workspace }}.js dynamic import
import(
`${data['good_data_url']}/components/${data['workspace_id']}.js`
).then(response => {
const { setContext } = response;
setContext({
backend: factory()
.onHostname(data['good_data_url'])
.withAuthentication(new TigerJwtAuthProvider(data['jwt'])),
workspaceId: data['workspace_id'],
});
iframeListenForJwt(data['jwt']);
});
});
first import tigerBackend.js and then the specific workspace.js module.
and this was working until last week, for more than 1 year, but now suddenly we are getting this error
Uncaught (in promise) NotSupportedError: Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry
at index.ts:35:23
at examplecompanya.js:46:1283
(examplecompanya is the name of the workspace)
and this is the line that is failing
window.customElements.define("gd-ai-assistant", GenAIAssistant);
it seems the JS is trying to define it twice, both in the workspace JS and in the tigerBackend, or something like that.Michael Ullock
06/26/2025, 10:11 AMMichael Ullock
06/26/2025, 1:05 PMJhonatan Teixeira
06/26/2025, 1:46 PMRaffaella Gozzini
06/26/2025, 3:11 PMMichael Ullock
06/26/2025, 3:15 PMRaffaella Gozzini
06/26/2025, 3:16 PMRaffaella Gozzini
06/26/2025, 8:19 PMMartin Burian
06/27/2025, 3:50 PMMartin Burian
06/27/2025, 4:46 PMtigerBackend.js
and workspace.js
, no error is generated. The window.customElements.define("gd-ai-assistant", ...)
statement exists only in workspace.js
, not in tigerBackend.js
.
I am only able to reproduce the error if I import workspace.js
twice in the same page, but I do not see anything in your provided code that would trigger a double import.
Could you please confirm if the issue is still reproducible on your side, and if so, are you able to share steps how you are able to reproduce it.
Regarding the issue described here: https://support.gooddata.com/hc/en-us/articles/42486336068371-Thu-June-26th-2025-Unexpected-GoodData-Cloud-Issue - this was a separate incident unrelated to your current experience, and it was successfully resolved yesterday.Jhonatan Teixeira
06/30/2025, 8:32 AMFrancisco Antunes
06/30/2025, 9:14 AMgen-ai-service
. I believed this has caused the issues you experienced, and the fact that they are no longer occurring attests to that.
Our apologies for the inconvenience, and for the delay in bringing this information to you! But rest assured that the gen-ai-service
is quite stable now and shouldn’t cause further issues 🙂Jhonatan Teixeira
06/30/2025, 3:00 PMFrancisco Antunes
06/30/2025, 3:42 PM