Skip to content

[Bug]: Upload a large file with delegate token fails #216

@giammin

Description

@giammin

Version

2.5.6

Environment that reproduces the issue

nodejs v20.11.1
typescript v5.3.3

Is it reproducible in the example application?

Yes

Reproduction steps

      const client = new ApiVideoClient({ apiKey: "YOUR_API_KEY"});
      const token="TOKEN"
      const file="a file bigger than chunk size.mp4"
      await client.videos.uploadWithUploadToken(token, file);

Expected result

a working video object

Actual result

ES: if the file is divided in 4 chunks than 4 video object are created.

and none of them are working

this is the method resulting object:

{
  videoId: 'vi2AzYUF1JDmzt8XnuXUdHpJ',
  createdAt: undefined,
  title: undefined,
  description: undefined,
  publishedAt: undefined,
  updatedAt: undefined,
  tags: undefined,
  metadata: undefined,
  source: undefined,
  assets: undefined,
  playerId: undefined,
  _public: undefined,
  panoramic: undefined,
  mp4Support: undefined
}

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