settings_override in call.create has unexpected required props
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
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from GetStream/stream-node
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
GetStream/stream-node#321 · 3 comments ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
GetStream/stream-node#2 ·
Maintainers usually reply within 1 day
All issues in GetStream/stream-node
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
siyuan-note/siyuan#21692 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
GetStream/stream-chat-react#3467 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
resend/resend-node#1206 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
cloudflare/cloudflare-typescript#2821 ·