settings_override in call.create has unexpected required props

Open
#132 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
api

Research direction

Start at the call.create entry point and trace how settings_override is validated for the video and audio fields shown in the error. Reproduce the request with only camera_default_on, then determine whether completion means accepting partial overrides without requiring unrelated settings or documenting that behavior.

Written by the indexing model from the issue text.

Description

Didn't want to create a support ticket if this is a better place to log.

Using call type 'default' in development mode app.
https://dashboard.getstream.io/app/1410477/video/call-types/default

I only want to specify the props I want to override, but the errors indicate a number of props require values.

Having to specify the required props like video.target_resolution on the server doesn't make sense or is practical, or audio.default_device etc.

I can retrieve the call type and merge my settings changes for value for settings_override, but I don't like this extra call.

const createdCall = await call.create({
      data: {
        created_by_id: `user-${caller.id}`,
        custom: customData,
        members: members?.map((m) => ({ user_id: `user-${m.user_id}`, role: m.role })),
        settings_override: {
          video: {
            camera_default_on: true
          },
          audio: {
            
          }

        }
      }
    })
Error:
 - message:  Stream error code 4: GetOrCreateCall failed with error: "data.settings_override.audio.default_device is a required field, data.settings_override.video.target_resolution.height must be 240 or greater, data.settings_override.video.target_resolution.width must be 240 or greater"
 - code:  4
Dominant language
TypeScript
Stars
19
Forks
4
Avg merge
1d 23h
Merged PRs (30d)
21

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GetStream/stream-node

All issues in GetStream/stream-node

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.