这是indexloc提供的服务,不要输入任何密码
Skip to content

Fix exception on null body. #2

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

ehuss
Copy link

@ehuss ehuss commented Oct 4, 2018

I'm not sure what changed, but my feed stopped working because it was crashing
due to an issue without a body. The body is null and marked was failing
with this error:

  Error: marked(): input parameter is undefined or null
      at marked (/gh-feed/node_modules/marked/lib/marked.js:1244:11)
      at JSON.parse.slice.forEach.issue (/gh-feed/index.js:155:18)
      at Array.forEach (<anonymous>)
      at Object.genFeed (/gh-feed/index.js:148:4)
      at genFeed.next (<anonymous>)
      at Object.dispatch (/gh-feed/node_modules/koa-router/lib/router.js:334:5)
      at dispatch.next (<anonymous>)
      at Object.compress (/gh-feed/node_modules/koa-compress/index.js:42:5)
      at compress.next (<anonymous>)
      at Object.<anonymous> (/gh-feed/node_modules/koa-compose/index.js:28:5)

I'm not sure what changed, but my feed stopped working because it was crashing
due to an issue without a body.  The body is null and `marked` was failing
with this error:

```
  Error: marked(): input parameter is undefined or null
      at marked (/gh-feed/node_modules/marked/lib/marked.js:1244:11)
      at JSON.parse.slice.forEach.issue (/gh-feed/index.js:155:18)
      at Array.forEach (<anonymous>)
      at Object.genFeed (/gh-feed/index.js:148:4)
      at genFeed.next (<anonymous>)
      at Object.dispatch (/gh-feed/node_modules/koa-router/lib/router.js:334:5)
      at dispatch.next (<anonymous>)
      at Object.compress (/gh-feed/node_modules/koa-compress/index.js:42:5)
      at compress.next (<anonymous>)
      at Object.<anonymous> (/gh-feed/node_modules/koa-compose/index.js:28:5)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant