createSignedURL returning two properties, broken URL generated
See original GitHub issueBug 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:
- call
createSignedURL
. - 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:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@inian I got it! Now I don’t have Typescript error. Thank you!
That’s the expected behaviour - Server returns signedURL and supabase-js also returns signedURL. There should be no signedUrl anywhere now.