Skip to content

ExperimentalWarning: buffer.File is an experimental feature and might change at any time #196

@hsuanweifu-sports-inference

Description

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

Looks like uploadOrUpdate is triggering ExperimentalWarning error.

ERROR	(node:8) ExperimentalWarning: buffer.File is an experimental feature and might change at any time
    at emitExperimentalWarning (node:internal/util:274:11)
    at new File (node:internal/file:40:5)
    at makeEntry (node:internal/deps/undici/undici:4366:44)
    at _FormData.append (node:internal/deps/undici/undici:4258:23)
    at StorageFileApi.<anonymous> (/var/task/index.js:146080:20)
    at Generator.next (<anonymous>)
    at /var/task/index.js:146037:71
    at new Promise (<anonymous>)
    at __awaiter2 (/var/task/index.js:146019:14)
    at StorageFileApi.uploadOrUpdate (/var/task/index.js:146072:16)

To Reproduce

  const responds = client.from(l`bucketName`).upload(
    path,
    new Blob([JSON.stringify(data)], {
      type: "application/json",
    }),
    {
      upsert: true,
    }
  );

System information

  • Version of supabase-js: [2.5.5]
  • Version of Node.js: [18.19.2]

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