Search code examples
iosamazon-web-servicesaws-sdk-ios

Getting AWSiOSSDKv2 [Error] Frequently


Could any tell me what exactly is the reason to, why I am getting the following error ?

AWSiOSSDKv2 [Error] AWSURLSessionManager.m line:254 | __41-[AWSURLSessionManager taskWithDelegate:]_block_invoke208 | Invalid AWSURLSessionTaskType.


Solution

  • Might be a little bit late but I just found a solution that worked for me.

    Now, it might be different because it really depends on your code. For example, I was having the problem by trying to send a PutItem request to DynamoDB, and my problem was that I didn't initialize the PutItemInput object.

    AWSDynamoDBPutItemInput *request = [AWSDynamoDBPutItemInput alloc];
    

    Should be:

    AWSDynamoDBPutItemInput *request = [[AWSDynamoDBPutItemInput alloc] init];
    

    After initializing it the code worked perfectly.