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

Bad line in web.txt #14

Open
erikthorselius opened this issue Oct 9, 2014 · 0 comments
Open

Bad line in web.txt #14

erikthorselius opened this issue Oct 9, 2014 · 0 comments

Comments

@erikthorselius
Copy link

The line "Attempting to access forbidden folder | /directory index of .*" is not accepted in to logentries.

$ cat web.txt
Attempting to access forbidden folder | /directory index of .* is forbidden

$ python le_auto-tag.py KEY web.txt
finding hosts
HOSTS
Traceback (most recent call last):
File "le_auto-tag.py", line 130, in
get_account_data()
File "le_auto-tag.py", line 16, in get_account_data
open_file()
File "le_auto-tag.py", line 42, in open_file
create_data(name,list_of_regex)
File "le_auto-tag.py", line 52, in create_data
label_id = create_label(name , color)
File "le_auto-tag.py", line 76, in create_label
response = urllib2.urlopen(req, json.dumps(request))
File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(_args)
File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(_args)
File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 400: Bad request

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

No branches or pull requests

1 participant