Skip to content

createSignedURL returning two properties, broken URL generated #148

@ProjectMoon

Description

@ProjectMoon

Bug report

Describe the bug

The storage createSignedURL function is returning a result of { signedUrl, signedURL }. The signedUrl should be the one with the full URL to download the file. But on the end of this URL, it has undefined. The signedURL contains the rest of the URL that should be appended to the domain and path in signedUrl.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. call createSignedURL.
  2. Inspect the returned value.

Expected behavior

Only one signedUrl property in the returned object, with the full URL properly present.

Screenshots

The returned value looks like this:

{
  "data": {
    "signedURL": "/object/sign/test/test.png?token=blahblahblah",
    "signedUrl": "https://example.supabase.co/storage/v1undefined",
    "error": null
  }
}

Metadata

Metadata

Assignees

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