webcontainer-core
webcontainer-core copied to clipboard
Error trying to define YAML Schema: Unable to load schema from 'http://json-schema.org/draft-06/schema': socket hang up
Describe the bug
When creating a YAML Schema usually we start with something like that in a _schema.json file:
{
"$schema": "http://json-schema.org/draft-06/schema#"
}
But when writing on StackBlitz I got that error:
Unable to load schema from 'http://json-schema.org/draft-06/schema': socket hang up.
Link to the blitz that caused the error
https://stackblitz.com/~/github.com/marcelopbarros/mgmgoiania
Steps to reproduce
Open the file on src/content/pages/_schema.json
that starts with "$schema": "http://json-schema.org/draft-06/schema#"
.
Expected behavior
No errors or warnings
Parity with Local
- [X] I have run the project in my local machine and I could not reproduce the issue.
Screenshots
Platform
Version = 1.84.0
Hash = 5b71eec7e7e29934191def5462461888ab204c32
WebContainer = 6854296d
Browser name = Chrome
Full version = 120.0.0.0
Major version = 120
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
performance.memory = {
"totalJSHeapSize": 85881438,
"usedJSHeapSize": 79821738,
"jsHeapSizeLimit": 4294705152
}
Additional context
When using local the error doesn't appear. I believe the URL is somewhat blocked when running on StackBlitz.