hermes - ๐Ÿ’ก(How to fix) Fix [Bug]: Cron jobs fail every time [1 participants]

Official PRs (โ€ฆ)
ON THIS PAGE

Recommended Tools

ร—6

Utilities matched from this issueโ€™s tags and category โ€” try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful ยท Quick feedback

Loadingโ€ฆ
GitHub stats
NousResearch/hermes-agent#13653โ€ขFetched 2026-04-22 08:05:03
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Author
Participants

Error Message

2026-04-21 13:00:15,420 ERROR [cron_##########] root: Non-retryable client error: Error code: 400 - {'error': {'message': 'Provider returned error', 'code': 400, 'metadata': {'raw': '{\n "error": {\n "code": 400,\n "message": "* GenerateContentRequest.tools[0].function_declarations[11].parameters.required[0]: property is not defined\n",\n "status": "INVALID_ARGUMENT"\n }\n}\n', 'provider_name': 'Google AI Studio', 'is_byok': True}}, 'user_id': 'user_######'}

Root Cause

Root Cause Analysis (optional)

Code Example

2026-04-21 13:00:15,420 ERROR [cron_##########] root: Non-retryable client error: Error code: 400 - {'error': {'message': 'Provider returned error', 'code': 400, 'metadata': {'raw': '{\n  "error": {\n    "code": 400,\n    "message": "* GenerateContentRequest.tools[0].function_declarations[11].parameters.required[0]: property is not defined\\n",\n    "status": "INVALID_ARGUMENT"\n  }\n}\n', 'provider_name': 'Google AI Studio', 'is_byok': True}}, 'user_id': 'user_######'}

---

--- hermes dump ---
version:          0.10.0 (2026.4.16) [b2111a2b]
os:               Linux 6.19.11-zen1-1-zen x86_64
python:           3.11.15
openai_sdk:       2.32.0
profile:          default
hermes_home:      ~/.hermes
model:            google/gemma-4-31b-it:free
provider:         openrouter
terminal:         local

api_keys:
  openrouter           set
  openai               not set
  anthropic            not set
  anthropic_token      not set
  nous                 not set
  glm/zai              not set
  zai                  not set
  kimi                 not set
  minimax              not set
  deepseek             not set
  dashscope            not set
  huggingface          not set
  nvidia               not set
  ai_gateway           not set
  opencode_zen         set
  opencode_go          not set
  kilocode             not set
  firecrawl            not set
  tavily               not set
  browserbase          not set
  fal                  not set
  elevenlabs           not set
  github               not set

features:
  toolsets:           hermes-cli
  mcp_servers:        0
  memory_provider:    built-in
  gateway:            running (systemd (user), pid 1065626)
  platforms:          telegram, discord
  cron_jobs:          0 active / 0 total
  skills:             81

config_overrides:
  display.streaming: True
--- end dump ---

---
RAW_BUFFERClick to expand / collapse

Bug Description

I have tried disabling wrap_response not sure what else to try. Cron jobs just always give this error. Normal chats work just find, so it seems to be cron specific.

Steps to Reproduce

  1. Run Hermes gateway, using OpenRouter with a Google model
  2. Schedule a cron job
  3. Check logs when it fires and fails

Expected Behavior

Cron should fire correctly and trigger the agent.

Actual Behavior

2026-04-21 13:00:15,420 ERROR [cron_##########] root: Non-retryable client error: Error code: 400 - {'error': {'message': 'Provider returned error', 'code': 400, 'metadata': {'raw': '{\n  "error": {\n    "code": 400,\n    "message": "* GenerateContentRequest.tools[0].function_declarations[11].parameters.required[0]: property is not defined\\n",\n    "status": "INVALID_ARGUMENT"\n  }\n}\n', 'provider_name': 'Google AI Studio', 'is_byok': True}}, 'user_id': 'user_######'}

Cron jobs do nothing, I have never had one work. It also removes the cron if it's one-shot, with no output.

Affected Component

Agent Core (conversation loop, context compression, memory)

Messaging Platform (if gateway-related)

Telegram, N/A (CLI only)

Debug Report

--- hermes dump ---
version:          0.10.0 (2026.4.16) [b2111a2b]
os:               Linux 6.19.11-zen1-1-zen x86_64
python:           3.11.15
openai_sdk:       2.32.0
profile:          default
hermes_home:      ~/.hermes
model:            google/gemma-4-31b-it:free
provider:         openrouter
terminal:         local

api_keys:
  openrouter           set
  openai               not set
  anthropic            not set
  anthropic_token      not set
  nous                 not set
  glm/zai              not set
  zai                  not set
  kimi                 not set
  minimax              not set
  deepseek             not set
  dashscope            not set
  huggingface          not set
  nvidia               not set
  ai_gateway           not set
  opencode_zen         set
  opencode_go          not set
  kilocode             not set
  firecrawl            not set
  tavily               not set
  browserbase          not set
  fal                  not set
  elevenlabs           not set
  github               not set

features:
  toolsets:           hermes-cli
  mcp_servers:        0
  memory_provider:    built-in
  gateway:            running (systemd (user), pid 1065626)
  platforms:          telegram, discord
  cron_jobs:          0 active / 0 total
  skills:             81

config_overrides:
  display.streaming: True
--- end dump ---

Operating System

Arch Linux rolling

Python Version

3.11.15

Hermes Version

Hermes Agent v0.10.0 (2026.4.16)

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

No response

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

extent analysis

TL;DR

The cron job error is likely due to an invalid argument in the GenerateContentRequest sent to the Google AI Studio provider, which can be fixed by verifying the function declarations and parameters in the request.

Guidance

  • Review the GenerateContentRequest payload to ensure that all required parameters are correctly defined, especially tools[0].function_declarations[11].parameters.required[0].
  • Check the Hermes configuration and the Google AI Studio provider settings to see if there are any specific requirements or restrictions on the request format.
  • Verify that the cron job is correctly configured and that the scheduled task is properly defined.
  • Consider enabling more detailed logging or debugging to capture the exact request payload and response from the Google AI Studio provider.

Example

No code snippet is provided as the issue seems to be related to the configuration or the request payload, which is not explicitly shown in the issue.

Notes

The issue seems to be specific to the cron jobs and the Google AI Studio provider, so the fix might involve adjusting the request payload or the provider settings. The wrap_response setting has already been tried, but it did not resolve the issue.

Recommendation

Apply workaround: Verify and adjust the GenerateContentRequest payload to ensure that all required parameters are correctly defined, and check the Hermes configuration and provider settings for any specific requirements.

Vote matrix ยท Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loadingโ€ฆ

Still need to ship something?

ร—6

Another batch ranked right after the header list โ€” different links, same matching logic.

Back to top recommendations

TRENDING

hermes - ๐Ÿ’ก(How to fix) Fix [Bug]: Cron jobs fail every time [1 participants]