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

[Error] Unhandled "type" parameter errors #363

Open
omartrigui opened this issue Jan 25, 2017 · 3 comments
Open

[Error] Unhandled "type" parameter errors #363

omartrigui opened this issue Jan 25, 2017 · 3 comments

Comments

@omartrigui
Copy link

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
Copy link
Owner

Thanks @omartrigui, will you send a pull request?

@omartrigui
Copy link
Author

Yes, done.

@rosid86
Copy link

rosid86 commented Jan 22, 2019

$ 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)

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

No branches or pull requests

4 participants