-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Downloading file with data returns a 403. Downloading to a local url works, generating a url works too. #3860
Comments
Hi @ipodishima, thanks for opening this issue. I quickly tried on a simple project and was not able to reproduce this issue following your steps: However, looking at your code snippets I noticed some things that might be causing your issue: 1· After calling let uploadPath = try await uploadTask.value If you immediately call 2· In your workaround function, it seems you were previously calling the deprecated Could you please confirm if either of these is the culprit? If the error still persists, then could you please provide the verbose logs when you perform the steps? You can enable it by doing Amplify.Logging.logLevel = .verbose Thanks! |
Great to hear the issue's been solved! And thanks for bringing up the function not being marked as deprecated on Xcode. It's probably related to what you've said and we just need to mark the actual implementation as deprecated as well. Regarding the We will take a look at ensuring these old APIs appear as deprecated when attempted to use, but in the meantime I'll close this issue as the actual error has been resolved. Thanks! |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
Hey
I noticed something really weird which took me a while to figure out (I didn't required to save the data to a file, so I was looking for other issues like misconfiguration).
After uploading a file, if you download it as data, you get a 403.
If I download the same file, same key, to a local url or if I generate a presigned url and download it, it works perfectly.
Steps To Reproduce
You'll get
And it work perfectly.
NB: My workaround for now is
Is this a regression?
No
Regression additional context
I don't know, first time using it.
Platforms
iOS
OS Version
17.2
Device
Simulator
Specific to simulators
No
Additional context
No response
The text was updated successfully, but these errors were encountered: