alanshaw / david-www

:eyeglasses: David helps keep your Node.js project dependencies up to date.
https://david-dm.org
MIT License
730 stars 131 forks source link

[Error] Unhandled "type" parameter errors #363

Open omartrigui opened 7 years ago

omartrigui commented 7 years ago

The input needs to be sanitized !

$ curl http://localhost:1337/alanshaw/grunt-jsio?type=()
SyntaxError: Unexpected token < in JSON at position 0
   at JSON.parse (<anonymous>)
   at [My PATH]/david-www/node_modules/node-fetch/lib/body.js:48:15
   at process._tickCallback (internal/process/next_tick.js:103:7)
alanshaw commented 7 years ago

Thanks @OmarTrigui, will you send a pull request?

omartrigui commented 7 years ago

Yes, done.

rosid86 commented 5 years ago

$ curl http://localhost:1337/alanshaw/grunt-jsio?type=() SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse () at [My PATH]/david-www/node_modules/node-fetch/lib/body.js:48:15 at process._tickCallback (internal/process/next_tick.js:103:7)