question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

createSignedURL returning two properties, broken URL generated

See original GitHub issue

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
  }
}

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Ascarbekcommented, Apr 15, 2021

@inian I got it! Now I don’t have Typescript error. Thank you!

1reaction
iniancommented, Apr 15, 2021

That’s the expected behaviour - Server returns signedURL and supabase-js also returns signedURL. There should be no signedUrl anywhere now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[fixed] Using the AWSS3 to get a PreSignedURL, returns a url ...
Using the minio sdk I get a working URL, when it's being generated by the S3 SDK I have the signature error mentioned...
Read more >
Generating multiple pre-signed urls with an API - Stack Overflow
getSignedUrl(). It is run asynchronously and have its own value and context. But variable params on the other hand will return mostly last...
Read more >
RemoteReader plugin - ASP.NET Image resizing for IIS
The RemoteReader plugin allows the ImageResizer to resize and display images that are located at any URL. Kind of like a resizing relay....
Read more >
Looker JavaScript Embed SDK - npm
The construction of the embedded content is broken into two phases, ... that generates a signed URL, createSignedUrl() , is provided in ...
Read more >
Looker JavaScript Embed SDK
Details. The Looker Embed SDK uses a fluent interface pattern. The construction of the embedded content is broken into two phases, building and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found