-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Description
Is there an existing issue for the same bug? (If one exists, thumbs up or comment on the issue instead).
- I have checked the existing issues.
Describe the bug and reproduction steps
I'm repeatedly getting the following errors. The error is presented in the chat window in a red box and I am unable to continue until I goto settings then reload the conversation. Sometimes I'm am to resume.
9:20:03 - openhands:ERROR: session.py:293 - Agent status error: BadRequestError: litellm.BadRequestError: GroqException - {"error":{"message":"tool call validation failed: parameters for tool str_replace_editor did not match schema: errors: [missing properties: 'path']","type":"invalid_request_error","code":"tool_use_failed","failed_generation":"\u003c|tool_calls_section_begin|\u003e\u003c|tool_call_begin|\u003efunctions.str_replace_editor:48\u003c|tool_call_argument_begin|\u003e{"command":"str_replace","old_str":"import { createContext, useContext, useEffect, useState } from 'react';\nimport type { ReactNode } from 'react';\nimport { User, Session } from '@supabase/supabase-js';\nimport { supabase } from '@/integrations/supabase/client';\n\ninterface AuthContextType {\n user: User | null;\n session: Session | null;\n loading: boolean;\n signIn: (email: string, password: string) =\u003e Promise\u003c{ error: any }\u003e;\n signUp: (email: string, password: string, fullName: string) =\u003e Promise\u003c{ error: any }\u003e;\n signOut: () =\u003e Promise\u003cvoid\u003e;\n resetPassword: (email: string) =\u003e Promise\u003c{ error: any }\u003e;\n signInWithOtp: (email: string) =\u003e Promise\u003c{ error: any }\u003e;\n}", "new_str":"import { createContext, useContext, useEffect, useState } from 'react';\nimport type { ReactNode } from 'react';\nimport { apiService } from '@/services/api';\n\ninterface User {\n id: string;\n email: string;\n full_name?: string;\n role: string;\n created_at: string;\n}\n\ninterface AuthContextType {\n user: User | null;\n session: { token: string } | null;\n loading: boolean;\n signIn: (email: string, password: string) =\u003e Promise\u003c{ error: any }\u003e;\n signUp: (email: string, password: string, fullName: string) =\u003e Promise\u003c{ error: any }\u003e;\n signOut: () =\u003e Promise\u003cvoid\u003e;\n resetPassword: (email: string) =\u003e Promise\u003c{ error: any }\u003e;\n signInWithOtp: (email: string) =\u003e Promise\u003c{ error: any }\u003e;\n}"}\u003c|tool_call_end|\u003e\u003c|tool_calls_section_end|\u003e"}}
19:20:03 - OBSERVATION
[Agent Controller f7675b600f794d08ae7051a9f2af08cd] AgentStateChangedObservation(content='', agent_state='running', reason='', observation=<ObservationType.AGENT_STATE_CHANGED: 'agent_state_changed'>)
19:20:03 - OBSERVATION
[Agent Controller f7675b600f794d08ae7051a9f2af08cd] AgentStateChangedObservation(content='', agent_state='error', reason='BadRequestError: litellm.BadRequestError: GroqException - {"error":{"message":"tool call validation failed: parameters for tool str_replace_editor did not match schema: errors: [missing properties: 'path']","type":"invalid_request_error","code":"tool_use_failed","failed_generation":"\u003c|tool_calls_section_begin|\u003e\u003c|tool_call_begin|\u003efunctions.str_replace_editor:48\u003c|tool_call_argument_begin|\u003e{\"command\":\"str_replace\",\"old_str\":\"import { createContext, useContext, useEffect, useState } from 'react';\\nimport type { ReactNode } from 'react';\\nimport { User, Session } from '@supabase/supabase-js';\\nimport { supabase } from '@/integrations/supabase/client';\\n\\ninterface AuthContextType {\\n user: User | null;\\n session: Session | null;\\n loading: boolean;\\n signIn: (email: string, password: string) =\u003e Promise\u003c{ error: any }\u003e;\\n signUp: (email: string, password: string, fullName: string) =\u003e Promise\u003c{ error: any }\u003e;\\n signOut: () =\u003e Promise\u003cvoid\u003e;\\n resetPassword: (email: string) =\u003e Promise\u003c{ error: any }\u003e;\\n signInWithOtp: (email: string) =\u003e Promise\u003c{ error: any }\u003e;\\n}\", \"new_str\":\"import { createContext, useContext, useEffect, useState } from 'react';\\nimport type { ReactNode } from 'react';\\nimport { apiService } from '@/services/api';\\n\\ninterface User {\\n id: string;\\n email: string;\\n full_name?: string;\\n role: string;\\n created_at: string;\\n}\\n\\ninterface AuthContextType {\\n user: User | null;\\n session: { token: string } | null;\\n loading: boolean;\\n signIn: (email: string, password: string) =\u003e Promise\u003c{ error: any }\u003e;\\n signUp: (email: string, password: string, fullName: string) =\u003e Promise\u003c{ error: any }\u003e;\\n signOut: () =\u003e Promise\u003cvoid\u003e;\\n resetPassword: (email: string) =\u003e Promise\u003c{ error: any }\u003e;\\n signInWithOtp: (email: string) =\u003e Promise\u003c{ error: any }\u003e;\\n}\"}\u003c|tool_call_end|\u003e\u003c|tool_calls_section_end|\u003e"}}\n', observation=<ObservationType.AGENT_STATE_CHANGED: 'agent_state_changed'>)
OpenHands Installation
Docker command in README
OpenHands Version
No response
Model Name
No response
Operating System
None
Logs, Errors, Screenshots, and Additional Context
No response