Skip to content

Stopped working not long ago with 400 error #91

@emfeng-coh

Description

@emfeng-coh

I had been using this and until maybe a couple weeks ago and I got back 400 every single time now. Can anyone help pls?

{"level":30,"time":1775635677515,"pid":40995,"hostname":"AUM-64JLKVT2","reqId":"req-4","req":{"method":"POST","url":"/v1/chat/completions","host":"localhost:8080","remoteAddress":"127.0.0.1","remotePort":53004},"msg":"incoming request"}
2026-04-08T08:07:57.516Z · DEBUG Created conversation 1e040418-6952-4abe-8236-c9b67a22cde9 (primary=true)
2026-04-08T08:07:57.516Z ● INFO New conversation 1e040418-6952-4abe-8236-c9b67a22cde9
2026-04-08T08:07:57.516Z · DEBUG Prompt (full): 536 chars
2026-04-08T08:07:57.516Z · DEBUG System message length: 3992 chars
2026-04-08T08:07:57.516Z ● INFO Creating session
2026-04-08T08:07:57.528Z ● INFO Streaming response for conversation 1e040418-6952-4abe-8236-c9b67a22cde9
2026-04-08T08:07:57.529Z · DEBUG Unhandled event: session.custom_agents_updated, data={"agents":[],"warnings":[],"errors":[]}
2026-04-08T08:07:57.532Z · DEBUG Unhandled event: pending_messages.modified, data={}
2026-04-08T08:07:57.648Z · DEBUG Unhandled event: session.mcp_server_status_changed, data={"serverName":"xcode","status":"connected"}
2026-04-08T08:07:57.648Z · DEBUG Unhandled event: pending_messages.modified, data={}
2026-04-08T08:07:57.649Z · DEBUG Unhandled event: hook.start, data={"hookInvocationId":"718b6790-d19b-44b8-b618-dc74e9fc59b6","hookType":"userPromptSubmitted","input":{"sessionId":"d61ab3fa-18c1-46c6-b1ab-70353dfa23df","timestamp":1775635677648,"cwd":"/Users/emfeng","prompt":"[User]: The user is currently inside this file: testing2App.swift\nThe contents are below:\n```swift:testing2App.swift\n\nimport SwiftUI\n\n@main\nstruct testing2App: App {\n    var body: some Scene {\n        WindowGroup {\n            ContentView()\n        }\n    }\n}\n\n```\n\nThe user has no code selected.\n\nThe user has asked:\n\ncreate another view to view the grocery details\n\n\n[User]: The user is currently inside this file: testing2App.swift\n\nThe user has no code selected.\n\nThe user has asked:\n\ncreate another view to view the grocery details\n"}}
2026-04-08T08:07:57.650Z · DEBUG Unhandled event: hook.end, data={"hookInvocationId":"718b6790-d19b-44b8-b618-dc74e9fc59b6","hookType":"userPromptSubmitted","success":true}
2026-04-08T08:07:57.651Z · DEBUG Unhandled event: session.mcp_servers_loaded, data={"servers":[{"name":"xcode","status":"connected"}]}
2026-04-08T08:07:59.590Z · DEBUG Unhandled event: session.tools_updated, data={"model":"claude-sonnet-4.6"}
2026-04-08T08:07:59.591Z · DEBUG Unhandled event: user.message, data={"content":"[User]: The user is currently inside this file: testing2App.swift\nThe contents are below:\n```swift:testing2App.swift\n\nimport SwiftUI\n\n@main\nstruct testing2App: App {\n    var body: some Scene {\n        WindowGroup {\n            ContentView()\n        }\n    }\n}\n\n```\n\nThe user has no code selected.\n\nThe user has asked:\n\ncreate another view to view the grocery details\n\n\n[User]: The user is currently inside this file: testing2App.swift\n\nThe user has no code selected.\n\nThe user has asked:\n\ncreate another view to view the grocery details\n","transformedContent":"<current_datetime>2026-04-08T08:07:59.590Z</current_datetime>\n\n[User]: The user is currently inside this file: testing2App.swift\nThe contents are below:\n```swift:testing2App.swift\n\nimport SwiftUI\n\n@main\nstruct testing2App: App {\n    var body: some Scene {\n        WindowGroup {\n            ContentView()\n        }\n    }\n}\n\n```\n\nThe user has no code selected.\n\nThe user has asked:\n\ncreate another view to view the grocery details\n\n\n[User]: The user is currently inside this file: testing2App.swift\n\nThe user has no code selected.\n\nThe user has asked:\n\ncreate another view to view the grocery details\n\n\n<reminder>\n<sql_tables>No tables currently exist. Default tables (todos, todo_deps) will be created automatically when you first use the SQL tool.</sql_tables>\n</reminder>","attachments":[],"interactionId":"07a6c652-4363-489f-a198-5775f4be4727"}
2026-04-08T08:07:59.591Z · DEBUG Unhandled event: hook.start, data={"hookInvocationId":"8c8edfc1-e39f-4b99-9d02-fb48ccf36a1f","hookType":"sessionStart","input":{"sessionId":"d61ab3fa-18c1-46c6-b1ab-70353dfa23df","timestamp":1775635679590,"cwd":"/Users/emfeng","source":"new","initialPrompt":"[User]: The user is currently inside this file: testing2App.swift\nThe contents are below:\n```swift:testing2App.swift\n\nimport SwiftUI\n\n@main\nstruct testing2App: App {\n    var body: some Scene {\n        WindowGroup {\n            ContentView()\n        }\n    }\n}\n\n```\n\nThe user has no code selected.\n\nThe user has asked:\n\ncreate another view to view the grocery details\n\n\n[User]: The user is currently inside this file: testing2App.swift\n\nThe user has no code selected.\n\nThe user has asked:\n\ncreate another view to view the grocery details\n"}}
2026-04-08T08:07:59.633Z · DEBUG Unhandled event: hook.end, data={"hookInvocationId":"8c8edfc1-e39f-4b99-9d02-fb48ccf36a1f","hookType":"sessionStart","success":true}
2026-04-08T08:07:59.633Z · DEBUG Unhandled event: assistant.turn_start, data={"turnId":"0","interactionId":"07a6c652-4363-489f-a198-5775f4be4727"}
2026-04-08T08:07:59.633Z · DEBUG Unhandled event: session.usage_info, data={"tokenLimit":168000,"currentTokens":12107,"messagesLength":2,"systemTokens":1021,"conversationTokens":223,"toolDefinitionsTokens":10863,"isInitial":true}
2026-04-08T08:08:00.953Z · DEBUG Unhandled event: hook.start, data={"hookInvocationId":"0963d1b6-6143-48f6-b5e0-d3db29b3826a","hookType":"errorOccurred","input":{"sessionId":"d61ab3fa-18c1-46c6-b1ab-70353dfa23df","timestamp":1775635680952,"cwd":"/Users/emfeng","error":{},"errorContext":"model_call","recoverable":true}}
2026-04-08T08:08:00.953Z ! WARN SDK error (model_call, recoverable): [object Object]
2026-04-08T08:08:00.955Z · DEBUG Unhandled event: hook.end, data={"hookInvocationId":"0963d1b6-6143-48f6-b5e0-d3db29b3826a","hookType":"errorOccurred","output":{"errorHandling":"retry","retryCount":2},"success":true}
2026-04-08T08:08:00.955Z · DEBUG Unhandled event: assistant.turn_end, data={"turnId":"0"}
2026-04-08T08:08:00.955Z ✗ ERROR Session error: Execution failed: CAPIError: 400 400 Bad Request
 (Request ID: B72B:1B4E67:2D70B4:315AC1:69D60CD0)
2026-04-08T08:08:00.955Z · DEBUG Cleared primary conversation 1e040418-6952-4abe-8236-c9b67a22cde9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions