atom-json-schema icon indicating copy to clipboard operation
atom-json-schema copied to clipboard

Get an ENOTFOUND error every time I save a .json file

Open ryanwalls opened this issue 8 years ago • 3 comments

Steps to reproduce

  1. Open a json file
  2. Save the file

Atom Version: 1.1.0 System: Mac OS X 10.11.1 Thrown From: json-schema package, v0.1.15

Stack Trace

Failed to activate the json-schema package

At request to http://schemastore.org/api/json/catalog.json failed, reason: getaddrinfo ENOTFOUND schemastore.org schemastore.org:80

Error: request to http://schemastore.org/api/json/catalog.json failed, reason: getaddrinfo ENOTFOUND schemastore.org schemastore.org:80
    at ClientRequest.<anonymous> (/Users/ryan/.atom/packages/json-schema/node_modules/node-fetch/index.js:117:11)
    at emitOne (events.js:77:13)
    at ClientRequest.emit (events.js:169:7)
    at Socket.socketErrorListener (_http_client.js:259:9)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at connectErrorNT (net.js:978:8)
    at doNTCallback2 (node.js:438:9)
    at process._tickCallback (node.js:352:17)

Commands

     -3:36.6.0 settings-view:open (atom-text-editor.editor.is-focused)
     -3:03.8.0 fuzzy-finder:toggle-file-finder (div.panels)
     -3:02.8.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -3:02.0 core:save (atom-text-editor.editor.is-focused)
     -2:47.2.0 core:copy (atom-notification.error.icon.icon-flame.native-key-bindings.has-detail.has-close)
     -1:13 settings-view:open (atom-notification.error.icon.icon-flame.native-key-bindings.has-detail.has-close)
  4x -1:05.2.0 core:save (atom-text-editor.editor.is-focused)
  3x -1:03.7.0 core:move-up (atom-text-editor.editor.is-focused)
     -0:06.5.0 settings-view:open (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "themes": [
      "atom-dark-ui",
      "atom-dark-syntax"
    ],
    "disabledPackages": [
      "open-last-project",
      "atom-terminal-panel"
    ]
  }
}

Installed Packages

# User
.bin, vundefined
atom-typescript, v7.4.1
atom-yeoman, v0.3.15
atomatigit, v1.5.5
copy-filename, v1.0.1
go-plus, v3.5.1
grunt-runner, v0.11.0
json-schema, v0.1.15
language-diff, v0.3.1
last-cursor-position, v0.9.0
linter, v1.8.1
linter-tslint, v0.4.1
omnisharp-atom, v0.25.1

# Dev
No dev packages

ryanwalls avatar Nov 06 '15 20:11 ryanwalls

Ditto

AStoker avatar Apr 11 '16 15:04 AStoker

I just had this, then I noticed I had mono and mono-addins install (I'm on archlinux) but not mono-tools. I then downloaded it (and mono-debugger aswell) and restarted atom and got no error anymore.

Vrakfall avatar Nov 15 '16 21:11 Vrakfall

I'm getting this error as well.

Error: request to http://schemastore.org/api/json/catalog.json failed, reason: getaddrinfo ENOTFOUND schemastore.org schemastore.org:80
Error: request to http://schemastore.org/api/json/catalog.json failed, reason: getaddrinfo ENOTFOUND schemastore.org schemastore.org:80
    at ClientRequest.<anonymous> (/Users/spencerthayer/.atom/packages/json-schema/node_modules/node-fetch/index.js:117:11)
    at emitOne (events.js:96:13)
    at ClientRequest.emit (events.js:188:7)
    at Socket.socketErrorListener (_http_client.js:308:9)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at connectErrorNT (net.js:1016:8)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickDomainCallback (internal/process/next_tick.js:122:9)

spencerthayer avatar Dec 14 '16 15:12 spencerthayer