I tried and got ```CustomElementAdapter.ts:50 Fail...
# gd-beginners
s
I tried and got
Copy code
CustomElementAdapter.ts:50 Failed to load dependencies for the visualization Invariant Violation: Workspace must be provided either through script URL or directly in HTML.
r
Alright, so the devs came back with an option for this - if you'd like to use different workspaceIds for different instances of the components, you can override the default value through attributes - more info on that here! That should be a little more effective than trying to flush the context entirely 🙂
s
Thank you, i’ll look into it and will update
🤞 1
Hi @Radek Novacek how are you doing, The last solution I discussed with you guys was working absolutely fine till today, today we started getting this console error randomly, our GD dashboard in production is also affected and users are getting a blank page, people who have gooddata cloud access are seeing infinite loading, is there an outage
r
Hi @Shahenshah Malik, we have unfortunately been experiencing some issues - it has been announced on our Support page, and the same page will receive updates when we know more. Please accept my apologies for any inconvenience!
s
No problem, thanks.
Hey Radek, sorry to bother you again but the GoodData cloud is back up and running but our dashboard isn't. we're specifically using this implementation right now because of our very specific requirements
Copy code
// Create the script content with imports and context setup
				script.textContent = `
					import { setContext } from "<https://someDomain.cloud.gooddata.com/components/${workspaceId}.js>";
					import factory, { TigerTokenAuthProvider } from "<https://someDomain.cloud.gooddata.com/components/tigerBackend.js>";

					try {
						setContext({
						backend: factory()
							.onHostname("<https://innerspace.cloud.gooddata.com>")
							.withAuthentication(new TigerTokenAuthProvider("${token}")),
						workspaceId: "${workspaceId}",
					});
					} catch(e) {
						// console.log('Context set');
					}
				`;
s
@Radek Novacek any help here is greatly appreciated as our embedded dashboards are still unavailable.