Skip to content

Conversation

@FDj
Copy link

@FDj FDj commented Jan 13, 2026

I was getting this error when trying to join an intercom channel:

Exception thrown when trying to create endpoint: TypeError: Cannot read properties of undefined (reading 'id')

Manager listening on http://127.0.0.1:8000
Media Bridge at http://host.docker.internal:8081 (60s idle timeout)
Created user session: "Meh": 5b5f9cb7-400a-4c75-a42e-1220251ea805
[connection b5ca8365-cb0f-4678-8575-077ceb054b8f] Create, sfuResourceId Meh
TypeError: Cannot read properties of undefined (reading 'id')
at Connection.addIngestMids (/app/src/connection.ts:183:52)
at Connection.createOffer (/app/src/connection.ts:70:10)
at CoreFunctions.createConnection (/app/src/api_productions_core_functions.ts:69:50)
at Object. (/app/src/api_productions.ts:706:46)
at processTicksAndRejections (node:internal/process/task_queues:95:5)

The problem was that payload-type is no longer a single entry, but there's now a payload-types array. To fix this, if we don't find payload-type, use the "opus" entry from payload-types if present, otherwise the first entry in payload-types, then proceed as before.

FDj added 2 commits January 13, 2026 12:00
Updated audio payload type handling to support multiple payload types.
Update comments for clarity on payload-type handling.
@FDj FDj requested a review from birme as a code owner January 13, 2026 11:11
Copy link
Contributor

@birme birme left a comment

Choose a reason for hiding this comment

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

Looks good, thank you for the contribution.
Just for my knowledge, which version of the symphony media bridge were you running when discovered this?

@birme
Copy link
Contributor

birme commented Jan 13, 2026

Just fix the linting issues and I can merge this

Refactor audio payload type selection logic for clarity.
Reformat for linting.
@FDj
Copy link
Author

FDj commented Jan 16, 2026

The SMB repo I used was https://github.com/finos/SymphonyMediaBridge.git

@FDj FDj changed the title Work with multiple payload-types fix: support multiple payload-types Jan 17, 2026
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