Bhat
Bhat

Reputation: 602

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.

Upvotes: 1

Views: 311

Answers (1)

B.W.
B.W.

Reputation: 92

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.

Upvotes: 2

Related Questions