Skip to content

[Bug]: Can't list my livestreams with nodejs client package #218

@lyorb

Description

@lyorb

Version

2.5.6

Environment that reproduces the issue

Windows 11, ElysiaJS with bun

Is it reproducible in the example application?

Yes

Reproduction steps

return app
      .post(
        "/list",
        async ({ body }: { body: LiveStreamListPayload }) => {          
          const liveStreams = await client.liveStreams.list({
            streamKey: body.streamKey,
            name: body.name,
            sortBy: body.sortBy,
            sortOrder: body.sortOrder,
            currentPage: body.currentPage,
            pageSize: body.pageSize,
          });
          return { data: liveStreams };
        },
        {
          body: t.Object({
            streamKey: t.Optional(t.String()),
            name: t.Optional(t.String()),
            sortBy: t.Optional(t.String()),
            sortOrder: t.Optional(t.String()),
            currentPage: t.Optional(t.Number()),
            pageSize: t.Optional(t.Number()),
          }),
        }
      )

Expected result

The list of my livestreams

Actual result

{
  "name": "Error",
  "message": "ApiVideoError"
}

Additional context

No response

Relevant logs output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions