Open ebdavison opened 9 months ago
Think I see the issue here. Are you able to adjust the input and run it successfully on different URLs by any chance?
I think I can try a different URL. What is needed?
I delved further into the source of the error, and it seems to be because requests are being blocked by fortiguard, as a result the request output is <Response [403]>
. Since the subsequent line in the code (category_match = re.search(pattern, req.text, flags=0)
) erroneously assumes the request was successful (and not <Response [403]>
), category_match
ends up being None
- hence the observed AttributeError above
Describe the bug Trying to run Fortiguard URL Categorizer and get the following error:
To Reproduce Steps to reproduce the behavior:
Expected behavior A category is returned from the analyzer.
Complementary information If applicable, add screenshots and any additional information that might help explain your problem.
Work environment
Possible solutions If applicable, indicate possible solutions to the problem.
Additional context Add any other context about the problem here.