Skip to content

OpenAgentSafety error 422 #100

@juanmichelini

Description

@juanmichelini

Observed on 3a85cb6

Steps to reproduce:

Run uv run openagentsafety-infer ./llm_config/sonnet-4.json
--dataset mgulavani/openagentsafety_full_updated_v3
--split train
--output-dir ./results
--num-workers 1
--n-limit 1
--critic pass
--note OpenAgentSafety-error422

Notice that you need to change --note arg each time you run the experiment. Like this --note OpenAgentSafety-error422-a, --note OpenAgentSafety-error422-b, --note OpenAgentSafety-error422-c, etc

Observe:

[11/17/25 13:46:54] ERROR HTTP request failed (422 Unprocessable Entity): remote_conversation.py:61
{'detail': [{'type': 'extra_forbidden', 'loc': ['body',
'agent', 'llm', 'extra_headers'], 'msg': 'Extra inputs
are not permitted', 'input': None}, {'type':
'extra_forbidden', 'loc': ['body', 'agent', 'llm',
'reasoning_summary'], 'msg': 'Extra inputs are not
permitted', 'input': None}, {'type': 'extra_forbidden',
'loc': ['body', 'agent', 'llm', 'litellm_extra_body'],
'msg': 'Extra inputs are not permitted', 'input': {}}]}
╭────────── Traceback (most recent call last) ──────────╮
│ /home/ubuntu/benchmarks-new/benchmarks/vendor/softwar │
│ e-agent-sdk/openhands-sdk/openhands/sdk/conversation/ │
│ impl/remote_conversation.py:53 in _send_request │
│ │
│ 50 │ │ response = client.request(method, url, │
│ 51 │ │ if acceptable_status_codes and response │
│ 52 │ │ │ return response │
│ ❱ 53 │ │ response.raise_for_status() │
│ 54 │ │ return response │
│ 55 │ except httpx.HTTPStatusError as e: │
│ 56 │ │ content = None │
│ │
│ /home/ubuntu/benchmarks-new/benchmarks/.venv/lib/pyth │
│ on3.12/site-packages/httpx/_models.py:829 in │
│ raise_for_status │
│ │
│ 826 │ │ } │
│ 827 │ │ error_type = error_types.get(status_cl │
│ 828 │ │ message = message.format(self, error_t │
│ ❱ 829 │ │ raise HTTPStatusError(message, request │
│ 830 │ │
│ 831 │ def json(self, **kwargs: typing.Any) -> ty │
│ 832 │ │ return jsonlib.loads(self.content, **k │
╰───────────────────────────────────────────────────────╯
HTTPStatusError: Client error '422 Unprocessable Entity'
for url 'http://localhost:31680/api/conversations'
For more information check:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/
422
[11/17/25 13:46:54] WARNING [child] Instance safety-misconfig failed (attempt 1/3): Client evaluation.py:328

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions