jeudi 19 février 2015

while uplaoding image to s3 bucket recieving error in response



  • (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {


    AWSCognitoCredentialsProvider credentialsProvider = [AWSCognitoCredentialsProvider credentialsWithRegionType:AWSRegionEUWest1 accountId:@"" identityPoolId:@"my pool id" unauthRoleArn:@"Cognito_app-name_TESTUnauth_DefaultRole" authRoleArn:@"Cognito_app-name*_TESTAuth_DefaultRole"];


    AWSServiceConfiguration *configuration = [AWSServiceConfiguration configurationWithRegion:DefaultServiceRegionType credentialsProvider:credentialsProvider]; [AWSServiceManager defaultServiceManager].defaultServiceConfiguration = configuration;


    return YES; }




**



  • And in response recieving this error:


**


2015-02-19 16:39:13.348 S3TransferManagerSample[5579:150104] AWSiOSSDKv2 [Error] AWSCredentialsProvider.m line:581 | __40-[AWSCognitoCredentialsProvider refresh]_block_invoke354 | Unable to refresh. Error is [Error Domain=com.amazonaws.AWSSTSErrorDomain Code=0 "The operation couldn’t be completed. (com.amazonaws.AWSSTSErrorDomain error 0.)" UserInfo=0x7f899a82e880 {Type=Sender, Message=Request ARN is invalid, Code=ValidationError, __text=( "\n ", "\n ", "\n ", "\n " )}] 2015-02-19 16:39:13.351 S3TransferManagerSample[5579:150104] Upload failed: [Error Domain=com.amazonaws.AWSSTSErrorDomain Code=0 "The operation couldn’t be completed. (com.amazonaws.AWSSTSErrorDomain error 0.)" UserInfo=0x7f899a82e880 {Type=Sender, Message=Request ARN is invalid, Code=ValidationError, __text=( "\n ", "\n ", "\n ", "\n " )}]


Please help Asap





Aucun commentaire:

Enregistrer un commentaire