You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception has occurred: JSONDecodeError (note: full exception trace is shown but execution is paused at: run)
Invalid \escape: line 1 column 386341 (char 386340)
File "/opt/homebrew/Cellar/[email protected]/3.11.9/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.11.9/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.11.9/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/smujahid/repos/mozilla/bugbug/bugbug/code_search/searchfox_api.py", line 92, in search
results = json.loads(after_results[: after_results.index(";\n")])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/smujahid/repos/mozilla/bugbug/bugbug/code_search/searchfox_api.py", line 160, in get_function_by_name
definitions = search(
^^^^^^^
File "/Users/smujahid/repos/mozilla/bugbug/bugbug/code_search/mozilla.py", line 55, in get_function
result = function_search_searchfox_api.get_function_by_name(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/smujahid/repos/mozilla/bugbug/bugbug/code_search/mozilla.py", line 79, in get_function_by_name
return self.get_function(
^^^^^^^^^^^^^^^^^^
File "/Users/smujahid/repos/mozilla/bugbug/bugbug/tools/code_review.py", line 807, in request_for_function_declarations
definitions = function_search.get_function_by_name(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/smujahid/repos/mozilla/bugbug/bugbug/tools/code_review.py", line 1052, in run (Current frame)
requested_functions = request_for_function_declarations(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/smujahid/repos/mozilla/bugbug/venv/lib/python3.11/site-packages/tenacity/__init__.py", line 478, in __call__
result = fn(*args, **kwargs)
File "/Users/smujahid/repos/mozilla/bugbug/venv/lib/python3.11/site-packages/tenacity/__init__.py", line 336, in wrapped_f
return copy(f, *args, **kw)
File "/Users/smujahid/repos/mozilla/bugbug/scripts/code_review_tool_evaluator.py", line 194, in main
comments = tool.run(patch)
File "/Users/smujahid/repos/mozilla/bugbug/scripts/code_review_tool_evaluator.py", line 253, in <module>
main(args.variants, args.review_request_ids)
File "/opt/homebrew/Cellar/[email protected]/3.11.9/Frameworks/Python.framework/Versions/3.11/lib/python3.11/runpy.py", line 88, in _run_code
exec(code, run_globals)
File "/opt/homebrew/Cellar/[email protected]/3.11.9/Frameworks/Python.framework/Versions/3.11/lib/python3.11/runpy.py", line 198, in _run_module_as_main
return _run_code(code, main_globals, None,
json.decoder.JSONDecodeError: Invalid \escape: line 1 column 386341 (char 386340)
This occurs when loading a JSON string with the following (the position 386341 is the s in \\"<\\script>\\"):
This occurs when loading a JSON string with the following (the position 386341 is the
s
in\\"<\\script>\\"
):MRE:
Here is the page that we are trying to parse its content: https://searchfox.org/mozilla-central/search?q=send
The text was updated successfully, but these errors were encountered: