Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot read property 'body' of null #19

Open
yaronuliel opened this issue Nov 6, 2015 · 1 comment
Open

Uncaught TypeError: Cannot read property 'body' of null #19

yaronuliel opened this issue Nov 6, 2015 · 1 comment
Labels

Comments

@yaronuliel
Copy link

This error happened directly after installing the package from the packages install in Atom

Atom Version: 1.1.0
System: Mac OS X 10.11
Thrown From: cdnjs-atom-extension package, v1.5.2

Stack Trace

Uncaught TypeError: Cannot read property 'body' of null

At ~/.atom/packages/cdnjs/lib/cdnjs-view.coffee:49

TypeError: Cannot read property 'body' of null
  at ~/.atom/packages/cdnjs/lib/cdnjs-view.coffee:47:8
  at Request.callback (~/.atom/packages/cdnjs/node_modules/superagent/lib/node/index.js:785:12)
  at Stream.<anonymous> (~/.atom/packages/cdnjs/node_modules/superagent/lib/node/index.js:990:12)
  at emitNone (events.js:72:20)
  at Stream.emit (events.js:166:7)
  at Unzip.<anonymous> (~/.atom/packages/cdnjs/node_modules/superagent/lib/node/utils.js:108:12)
  at emitNone (events.js:72:20)
  at Unzip.emit (events.js:166:7)
  at endReadableNT (_stream_readable.js:889:12)
  at doNTCallback2 (node.js:438:9)
  at process._tickCallback (node.js:352:17)

Commands

     -3:56 core:backspace (atom-text-editor.editor.mini.is-focused)
     -3:55.8.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
     -3:55.8.0 core:cancel (atom-text-editor.editor.mini.is-focused)
     -3:55.3.0 command-palette:toggle (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -3:51.9.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -3:51.9.0 settings-view:view-installed-packages (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -2:44 core:backspace (atom-text-editor.editor.is-focused)
     -2:42.5.0 core:save (atom-text-editor.editor.is-focused)
     -2:28.8.0 core:confirm (atom-text-editor.editor.mini.is-focused)
  2x -2:01.9.0 core:close (atom-text-editor.editor.is-focused)
     -0:55.7.0 symbols-view:toggle-file-symbols (atom-text-editor.editor.mini.is-focused)
     -0:52.5.0 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:49.5.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:49.5.0 settings-view:view-installed-packages (atom-text-editor.editor)
     -0:23.4.0 core:select-all (atom-text-editor.editor.mini.is-focused)
     -0:23 core:copy (atom-text-editor.editor.mini.is-focused)

Config

{
  "core": {
    "themes": [
      "atom-dark-ui",
      "one-dark-syntax"
    ]
  }
}

Installed Packages

# User
cdnjs, v1.5.0
emmet, v2.3.13
linter, v1.10.0
linter-jscs, v3.2.0
linter-jshint, v1.2.1
svn, v0.0.8

# Dev
No dev packages
@thomasdavis
Copy link
Member

Thanks for the excellent pull request and sorry for never getting back to you.

This most likely happened due to the API server being down at the time.

I will have to wrap the network requests such that they fail more gracefully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants