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

JSONDecodeError: Invalid \uXXXX escape #5

Open
Tom-Gorup opened this issue Oct 26, 2023 · 0 comments
Open

JSONDecodeError: Invalid \uXXXX escape #5

Tom-Gorup opened this issue Oct 26, 2023 · 0 comments

Comments

@Tom-Gorup
Copy link

I keep getting a JSONDecodeError: Invalid \uXXXX escape at step 7 of 8. I made some adjustments to the load_data function in helper.py in an attempt to isolate the problem:

def load_data(_log_file):
    """
    Load each data set as json file
    """
    # Load the data
    with open(_log_file) as _file:
        try:
            print(_file)
            return_set = json.load(_file)
            return return_set
        except Exception as e:
            print(_file)
            print(e)

It appears the tool is struggling with the browsing_365mashbir.json file. Any idea's on how to resolve this? I've attempted to look at character 9,502,718, but uncertain as to what I should expect to see vs what's there.

<_io.TextIOWrapper name='Data/Legitimate/browsing_365mashbir.json' mode='r' encoding='UTF-8'>
<_io.TextIOWrapper name='Data/Legitimate/browsing_365mashbir.json' mode='r' encoding='UTF-8'>                                                                                                                                                                               
Invalid \uXXXX escape: line 1 column 9502719 (char 9502718)                                                                                                                                                                                                                 

Traceback (most recent call last):
  File "/home/ubuntu/waf-comparison-project/runner.py", line 158, in <module>                                                                                                                                                                                               
    main()
  File "/home/ubuntu/waf-comparison-project/runner.py", line 153, in main
    wafs.send_payloads()
  File "/home/ubuntu/waf-comparison-project/runner.py", line 142, in send_payloads
    self._send_payloads(data, url, test_name)
  File "/home/ubuntu/waf-comparison-project/runner.py", line 95, in _send_payloads
    _executor.map(
  File "/usr/lib/python3.10/concurrent/futures/_base.py", line 610, in map
    fs = [self.submit(fn, *args) for args in zip(*iterables)]
TypeError: 'NoneType' object is not iterable

Appreciate the assist!

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