Skip to content

CreateSignedUrl has a trailing "?" #291

Closed
supabase-community/storage-csharp
#51

Description

@msklein

Bug report

Describe the bug

There is a bug when you call CreateSignedUrl. The Url is returned with a question mark at the end that is not part of the Url. Without the question mark, the Url works as expected.
This is my current workaround:

return url.EndsWith('?') ? url[..^1] : url;

To Reproduce

Try and get a signed url from your Supabase client:

var url = await client.Storage
    .From("bucket-name")
    .CreateSignedUrl(path, 3600);

Console.WriteLine(url);

Expected behavior

The signed Url should be returned like this:

https://.../image.webp?token=...

Actual behavior

The signed Url is actually returned with a question mark at the end

https://.../image.webp?token=...?

System information

  • Windows
  • Visual Studio 2026
  • Supabase nuget package 1.4.0

Activity

  1. self-assigned this
    on Jul 29, 2026
  2. added
    bug
    on Jul 29, 2026
  3. Tr00d commented on Jul 29, 2026

    @Tr00d
    Contributor

    @msklein Thanks for reporting this. I saw the discussion initially, but I wanted to finish another task before starting an investigation.
    It's indeed and issue, and I have a fix coming.

    I'll get back you to when it's released.

    EDIT: The fix has been merged. You can expect a release before the end of the week, there's a couple of things I want to bundle with it.

  4. msklein commented on Jul 29, 2026

    @msklein
    Author

    @Tr00d, Awesome, thanks!

  5. Tr00d commented on Jul 30, 2026

    @Tr00d
    Contributor

    @msklein I just released new version for all packages. The fix is available under the latest version of Supabase.Storage, or through the main package Supabae.Csharp.
    Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions