Skip to content

HTTPError: 406 Client Error in find_function_definition() tool #5896

@suhaibmujahid

Description

@suhaibmujahid
Exception: HTTPError('406 Client Error: Not Acceptable for url: https://hg-edge.mozilla.org/mozilla-unified/raw-file/tip/netwerk/protocol/about/nsAboutCache.cpp')
Traceback (most recent call last):
 File "/Users/smujahid/repos/mozilla/bugbug/.venv/lib/python3.12/site-packages/langchain_core/tools/base.py", line 917, in run response = context.run(self._run, *tool_args, **tool_kwargs)
 File "/Users/smujahid/repos/mozilla/bugbug/.venv/lib/python3.12/site-packages/langchain_core/tools/structured.py", line 93,    in _run return self.func(*args, **kwargs)
 File "/Users/smujahid/repos/mozilla/bugbug/bugbug/tools/code_review/langchain_tools.py", line 71, in find_function_definition functions = function_search.get_function_by_name(
 File "/Users/smujahid/repos/mozilla/bugbug/bugbug/code_search/searchfox_api.py", line 287, in get_function_by_name return self.definitions_to_results(commit_hash, definitions)
 File "/Users/smujahid/repos/mozilla/bugbug/bugbug/code_search/searchfox_api.py", line 234, in definitions_to_results source = searchfox_data.extract_source(
 File "/Users/smujahid/repos/mozilla/bugbug/bugbug/code_search/searchfox_data.py", line 153, in extract_source for line in         read_mc_path(target_sym_file):
 File "/Users/smujahid/repos/mozilla/bugbug/bugbug/code_search/searchfox_api.py", line 241, in <lambda> self.get_file(
 File "/Users/smujahid/repos/mozilla/bugbug/bugbug/code_search/searchfox_api.py", line 227, in _get_file r.raise_for_status()
 File "/Users/smujahid/repos/mozilla/bugbug/.venv/lib/python3.12/site-packages/requests/models.py", line 1026, in raise_for_status raise HTTPError(http_error_msg, response=self)
 requests.exceptions.HTTPError: 406 Client Error: Not Acceptable for url: https://hg-edge.mozilla.org/mozilla-unified/raw-file/tip/netwerk/protocol/about/nsAboutCache.cpp

Metadata

Metadata

Assignees

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions