_build_api_kwargs crashes from None or unbound variables
NousResearch/hermes-agent · cluster 7215 · agent
Data as of
Nothing open on GitHub. Fix merged in #17032. Check it covers your case.
The short answer
- Known?
- Yes. 11 related items grouped here, 6 issues already closed.
- Fix event
- A fix was merged to main in PR #17032. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
partially resolved, deciding PR #17032. That is separate from the fix event. - Still open
- Nothing open on GitHub.
Multiple bugs and fixes centered on NoneType and UnboundLocalError crashes in _build_api_kwargs, primarily caused by request_overrides being None and api_kwargs being referenced before assignment. A secondary theme involves false OAuth detection for third-party Anthropic providers.
Open issues0
Open PRs0
Fixes on record
-
#17032 fix(gateway): guard against None request_overrides in _build_api_kwargs
files:
gateway/run.py,tests/gateway/test_fast_command.py,tests/run_agent/test_provider_parity.py
4 PRs closed without merging
From the close comments: superseded by another PR 2 · merged via another change 1 · other 1
-
#7305 fix(gateway): guard against None request_overrides in _build_api_kwargs · merged via another change →
#17032 - #7353 fix: prevent false OAuth detection and gateway crashes for third-party Anthropic providers · other
-
#7367 fix(agent): prevent false OAuth detection for third-party Anthropic providers · superseded by another PR →
#12846,#7393 -
#8253 fix(api_server): support OpenAI content array format for images in chat completions · superseded by another PR →
#12969
Closed issues · 6
- Closed#7215[Bug]: `AttributeError: 'NoneType' object has no attribute 'get'` after fast mode commit
- Closed#7236Gateway sessions crash: request_overrides is None in _build_api_kwargs
- Closed#7241Bug: NoneType error in run_agent.py _build_api_kwargs
- Closed#7259[Bug]: AttributeError: 'NoneType' object has no attribute 'get' in _build_api_kwargs when service_tier is empty
- Closed#7277[Bug]: Gateway crashes on every message — request_overrides is None in _build_api_kwargs (v0.8.0)
- Closed#7690UnboundLocalError: api_kwargs not defined in max_retries_exhausted error handler
How this cluster was grouped
-
Link evidence (
partly structural links): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text. - Members outside that structural core may belong to a different underlying problem.
-
Pairwise link density
0.24: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36.1.00means every pair is linked.
Pick up a Lab task
Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.
Open the LabAt a glance
- Subsystem
- agent
- Merged PRs
- #17032
- Closed issues
- 6
- Attempts
- 4 PRs closed without merging
- Fix link checked
- 28 Apr 2026