webcontainer-core icon indicating copy to clipboard operation
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

Open marcelopbarros opened this issue 6 months ago • 4 comments

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

Screenshots

image

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.

marcelopbarros avatar Jan 28 '24 18:01 marcelopbarros