Skip to content

Conversation

@kompfner
Copy link
Contributor

No description provided.

// endpoint: 'http://localhost:7860/connect',
// });
const aws = new AwsClient({
accessKeyId: "<YOUR_ACCESS_KEY>",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These need to be filled in

@codecov
Copy link

codecov bot commented Nov 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
see 23 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

# TODO: clean up. Hackily overrides transport created by bot() entrypoint...
ws_transport = WebsocketServerTransport(
# host=public_ip,
port=8080, # This is the only port we're allowed to bind to...but the problem is it's already taken in order to support the /invoke HTTP entrypoint.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's the crux of the problem. Port 8080 is already being used to expose the invoke method, which starts the bot (which sets up the pipeline, etc.)

The thing to try next, which is a bit more complicated, is to make it so:

  • We don't use the default app entrypoint (@app.entrypoint) - we may have to abandon using BedrockAgentCoreApp entirely.
  • Instead, on the if __name__ == "__main__" section, we set up a WebSocket server on port 8080
  • Only when we connect we kick off the code to set up the Pipecat pipeline...
  • ...and somehow pass that already-established connection to use as the Pipecat WebSocket transport

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants