Skip to content

fix: typo in serialization for Container::None#122

Merged
lukeocodes merged 1 commit intodeepgram:mainfrom
mixlayer:fix_container_enum
Feb 26, 2026
Merged

fix: typo in serialization for Container::None#122
lukeocodes merged 1 commit intodeepgram:mainfrom
mixlayer:fix_container_enum

Conversation

@zackangelo
Copy link
Copy Markdown
Contributor

@zackangelo zackangelo commented Jul 17, 2025

Proposed changes

  • Fix serialization bug that causes an API error for Container::None

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update or tests (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING.md doc
  • I have added tests and/or examples that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a critical serialization bug in the Container enum where Container::None was being serialized as "nonne" instead of "none", which would cause API errors when this option is used.

Changes:

  • Corrected typo in Container::None serialization from "nonne" to "none"

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@lukeocodes lukeocodes changed the title Fix typo in serialization for Container::None fix: typo in serialization for Container::None Feb 26, 2026
@lukeocodes
Copy link
Copy Markdown
Member

lol yeh we need this fix

     Failed to generate speech: 400 Bad Request
     Error details: {"err_code":"INVALID_QUERY_PARAMETER","err_msg":"Failed to deserialize query parameters: unknown variant `nonne`, expected one of `wav`, `ogg`, `none`","request_id":"28e90ccd-87fa-4d71-a023-0853f6c7ac33"}

@lukeocodes lukeocodes self-requested a review February 26, 2026 15:54
@lukeocodes lukeocodes merged commit f7b2b15 into deepgram:main Feb 26, 2026
4 checks passed
@lukeocodes lukeocodes mentioned this pull request Feb 26, 2026
5 tasks
lukeocodes added a commit that referenced this pull request Feb 26, 2026
## Summary

- **fix**: `Container::None` serialization typo (`"nonne"` → `"none"`)
causing 400 errors on TTS raw audio requests (#122)
- **fix**: missing `User-Agent` header on WebSocket handshake requests,
breaking AWS WAF compatibility (#133)
- **fix**: broken Discord badge in README (#135)
- **fix**: Flux WebSocket now handles unknown message types gracefully
instead of producing stream-breaking `JsonError`s (#141)
- `FluxResponse::Unknown(serde_json::Value)` preserves the raw JSON for
inspection/logging
- `TurnEvent::Unknown` catches unrecognized event strings via
`#[serde(other)]`
  - Non-breaking: both enums are `#[non_exhaustive]`

## Changes

- Bump version to 0.9.1
- Update CHANGELOG with 0.9.1 entries
- Lock 0.9.0 changelog link to `0.9.0` tag

## Test plan

- [x] Verified `Container::None` serialization bug with unit test and
e2e against Deepgram API
- [x] Confirmed fix produces `container=none` and API returns audio
successfully
- [x] Mock WebSocket tests verify unknown messages don't break the Flux
stream
- [x] E2e test streams real audio to Deepgram Flux API successfully
- [x] CI passes on this branch
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.

3 participants