A shame I cannot get it to work #62
Replies: 1 comment 3 replies
-
I've worked some more on this. The generatePresignedUrl() works only if I provide my original key and secret. If I use a temporary credential (which is a must-have for security reasons) then it fails. One reason is that no token is generated as part of the URL (X-Amz-Security-Token). I note that this is automatically generated on Android AWS SDK version of the generatePresignedUrl() function. If I manually add the session token from my temporary credentials to the generated URL string then it works to the extent of accepting the token but subsequently fails because the signature is not valid, the error returned being: SignatureDoesNotMatchThe request signature we calculated does not match the signature you provided. Check your key and signing method. The credentials given to the generate function are exactly the same as those given to my Android version and that produces the correct signature and loads the S3 contents as expected. Lastly, I notice that adding this library causes problems with Android Studio - it's what I originally observed when I said it "didn't compile". It does - but only on every second compilation! I've tried clearing the caches, etc but that has no effect. This may be a problem with how the project is set up - I've no idea - but it's been compiling and running fine through 4 weeks of development until I added this library. The error I get is: Exception in thread "main" java.lang.Error: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:615:74: error: unknown type name 'NSUInteger' |
Beta Was this translation helpful? Give feedback.
-
This looks to be a great little library and is desperately needed because who knows how long Amazon will take to publish a working version for Kotlin Native.
Unfortunately, while I followed the instructions on your website and provided the correct credentials, it doesn't work. In Android Studio it won't even build:
which has only happened since I added the build.gradle and POD lines in your instructions.
On Xcode the app builds but as soon as I attempt to list a bucket it throws an exception.
I look forward to seeing the library working!
Beta Was this translation helpful? Give feedback.
All reactions