Flutter Layout Overflow with Invalid JSON API Request
Bug Description
I see this API error, not sure what it might mean: ⏺ Let me run the tests properly by checking what test names exist:
⏺ Bash(flutter test test/features/properties/presentation/pages/property_duplication_test.dart --reporter=expanded)
⎿ Error: 00:00 +0: loading
/Users/ryan/dev/investor_lens/test/features/properties/presentation/pages/property_duplication_test.dart
00:00 +0: Property Duplication Feature - TDD Implementation (setUpAll)
00:00 +0: Property Duplication Feature - TDD Implementation RED: should show duplicate option in property actions menu
🔴 RED Phase: Testing duplicate button visibility...
══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
The following assertion was thrown during layout:
A RenderFlex overflowed by 58 pixels on the right.
The relevant error-causing widget was:
Row
… +160 lines (ctrl+r to see all)
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"The request body is not valid JSON:
no low surrogate in string: line 1 column 49319 (char 49318)"}}
Environment Info
- Platform: darwin
- Terminal: iTerm.app
- Version: 1.0.56
- Feedback ID: efc19108-18a6-4241-a067-d6caf6d91b85
Errors
[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n at genericNodeError (node:internal/errors:983:15)\n at wrappedFn (node:internal/errors:537:14)\n at checkExecSyncError (node:child_process:882:11)\n at execSync (node:child_process:954:15)\n at A7 (file:///Users/ryan/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:797:5848)\n at file:///Users/ryan/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:709:48013\n at Q (file:///Users/ryan/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:609:14408)\n at fY (file:///Users/ryan/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:709:45724)\n at QK (file:///Users/ryan/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:709:44590)\n at SB (file:///Users/ryan/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:709:50639)","timestamp":"2025-07-20T20:48:44.634Z"},{"error":"Error: ENOENT: no such file or directory, open '/proc/version'\n at Module.readFileSync (node:fs:442:20)\n at Object.readFileSync (file:///Users/ryan/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:615:7077)\n at file:///Users/ryan/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:615:8638\n at Q (file:///Users/ryan/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:609:14408)\n at kT4 (file:///Users/ryan/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:709:62815)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-07-20T20:48:45.423Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"The request body is not valid JSON: no low surrogate in string: line 1 column 49319 (char 49318)\"}}\n at V4.generate (file:///Users/ryan/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1249:6428)\n at dM.makeStatusError (file:///Users/ryan/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1266:2101)\n at dM.makeRequest (file:///Users/ryan/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1266:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async w81.showErrors (file:///Users/ryan/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2670:14158)\n at async w81 (file:///Users/ryan/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2210:1704)\n at async mqB (file:///Users/ryan/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2670:14009)\n at async file:///Users/ryan/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2670:9066\n at async JKA (file:///Users/ryan/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2670:1626)\n at async ra (file:///Users/ryan/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2670:9036)","timestamp":"2025-07-20T20:49:13.450Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗