davsclaus opened a new pull request, #25162: URL: https://github.com/apache/camel/pull/25162
_Claude Code on behalf of davsclaus_ ## Summary When the TUI "Send Message" dialog (F2 > Send Message) selects a route that uses `platform-http` as its consumer, sending fails with `FailedToCreateProducerException` because `platform-http` is a consumer-only component. This fix detects `platform-http` routes and sends an actual HTTP request directly from the TUI using Java's `HttpClient`, bypassing the dev console `ProducerTemplate` path entirely. The HTTP server base URL is already available via `IntegrationInfo.httpServer`. **Changes:** - `SendMessagePopup`: detects platform-http routes and sends HTTP requests directly using Java `HttpClient` (same pattern as `HttpTab` probe). Extracts path from the platform-http URI, determines HTTP method from `httpMethodRestrict` query param, and handles file-based body payloads. - `ActionsPopup`: passes `info.httpServer` to the send message popup ## Test plan - [ ] Run a Camel app with platform-http routes (e.g., REST API) - [ ] Open TUI, F2 > Send Message, select a platform-http route - [ ] Send a message — should succeed with HTTP response (status, headers, body) - [ ] Verify non-platform-http routes (direct, seda) still work via the existing dev console path - [ ] Verify file-based body payloads work for platform-http routes 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.6 <[email protected]> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
