{"action":"opened","issue":{"url":"https://api.github.com/repos/tcstool/NoSQLMap/issues/32","labels_url":"https://api.github.com/repos/tcstool/NoSQLMap/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/tcstool/NoSQLMap/issues/32/comments","events_url":"https://api.github.com/repos/tcstool/NoSQLMap/issues/32/events","html_url":"https://github.com/tcstool/NoSQLMap/issues/32","id":127070866,"number":32,"title":"Error responses from web attack crash program","user":{"login":"darinrogers","id":4040910,"avatar_url":"https://avatars.githubusercontent.com/u/4040910?v=3","gravatar_id":"","url":"https://api.github.com/users/darinrogers","html_url":"https://github.com/darinrogers","followers_url":"https://api.github.com/users/darinrogers/followers","following_url":"https://api.github.com/users/darinrogers/following{/other_user}","gists_url":"https://api.github.com/users/darinrogers/gists{/gist_id}","starred_url":"https://api.github.com/users/darinrogers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darinrogers/subscriptions","organizations_url":"https://api.github.com/users/darinrogers/orgs","repos_url":"https://api.github.com/users/darinrogers/repos","events_url":"https://api.github.com/users/darinrogers/events{/privacy}","received_events_url":"https://api.github.com/users/darinrogers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-17T03:07:14Z","updated_at":"2016-01-17T03:07:14Z","closed_at":null,"body":"If a call returns an error status code (e.g. 422, which is a valid response in my app as it tells the browser that the call didn't succeed and to show an error to the user), the program crashes. The stack trace looks like this:\r\n\r\nSending random parameter value...\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/NoSQLMap\", line 9, in <module>\r\n    load_entry_point('NoSQLMap==0.5', 'console_scripts', 'NoSQLMap')()\r\n  File \"/usr/local/lib/python2.7/dist-packages/NoSQLMap-0.5-py2.7.egg/EGG-INFO/scripts/nosqlmap.py\", line 60, in main\r\n    \r\n  File \"/usr/local/lib/python2.7/dist-packages/NoSQLMap-0.5-py2.7.egg/EGG-INFO/scripts/nosqlmap.py\", line 115, in mainMenu\r\n    \r\n  File \"/usr/local/lib/python2.7/dist-packages/NoSQLMap-0.5-py2.7.egg/EGG-INFO/scripts/nosqlmap.py\", line 534, in postApps\r\n    \r\n  File \"/usr/lib/python2.7/urllib2.py\", line 127, in urlopen\r\n    return _opener.open(url, data, timeout)\r\n  File \"/usr/lib/python2.7/urllib2.py\", line 410, in open\r\n    response = meth(req, response)\r\n  File \"/usr/lib/python2.7/urllib2.py\", line 523, in http_response\r\n    'http', request, response, code, msg, hdrs)\r\n  File \"/usr/lib/python2.7/urllib2.py\", line 448, in error\r\n    return self._call_chain(*args)\r\n  File \"/usr/lib/python2.7/urllib2.py\", line 382, in _call_chain\r\n    result = func(*args)\r\n  File \"/usr/lib/python2.7/urllib2.py\", line 531, in http_error_default\r\n    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)\r\nurllib2.HTTPError: HTTP Error 422: Unprocessable Entity"}}