Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lyorb opened this issue Apr 21, 2024 · 0 comments
Open

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

lyorb opened this issue Apr 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@lyorb
Copy link

lyorb commented Apr 21, 2024

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

@lyorb lyorb added the bug Something isn't working label Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant