Hi Everyone. Has anyone experienced an error with ...
# orm-help
l
Hi Everyone. Has anyone experienced an error with the playground with "could not find config" ? It's a really odd error, that some of my users experience. I'm unable to reproduce it, and it's only a few people who gets it, but it's blocking those users comepletely.
👍 1
a
I also get this error some times.
The error happens in this piece of the code:
const root = document.getElementById('root');
root.classList.add('playgroundIn');
const configText = document.getElementById('playground-config').innerText
if(configText && configText.length) {
try {
GraphQLPlayground.init(root, JSON.parse(configText))
}
catch(err) {
console.error("could not find config")
}
}
})
l
If anyone finds this later... This appeared to be an issue where users were not allowed access to external CDN's. Trying to access a CDN directly in the browser prompted the corporate login, after successful login the external resources required by playground were able to load - and the UI would work again.