{"action":"opened","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/744","repository_url":"https://api.github.com/repos/aws/aws-sdk-ios","labels_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/744/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/744/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/744/events","html_url":"https://github.com/aws/aws-sdk-ios/issues/744","id":261863304,"number":744,"title":"task.result is nil for my sdk generated by apigateway","user":{"login":"randalb1991","id":10707967,"avatar_url":"https://avatars1.githubusercontent.com/u/10707967?v=4","gravatar_id":"","url":"https://api.github.com/users/randalb1991","html_url":"https://github.com/randalb1991","followers_url":"https://api.github.com/users/randalb1991/followers","following_url":"https://api.github.com/users/randalb1991/following{/other_user}","gists_url":"https://api.github.com/users/randalb1991/gists{/gist_id}","starred_url":"https://api.github.com/users/randalb1991/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/randalb1991/subscriptions","organizations_url":"https://api.github.com/users/randalb1991/orgs","repos_url":"https://api.github.com/users/randalb1991/repos","events_url":"https://api.github.com/users/randalb1991/events{/privacy}","received_events_url":"https://api.github.com/users/randalb1991/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-30T18:32:54Z","updated_at":"2017-09-30T18:32:54Z","closed_at":null,"author_association":"NONE","body":"I have an issue with my SDK generated for IOS(Swift 4).I've implement the get method for the resource:\r\n https://utakevspc6.execute-api.eu-west-1.amazonaws.com/production/petstorewalkthrough/flattenall\r\n\r\nBased on http://docs.aws.amazon.com/es_es/apigateway/latest/developerguide/getting-started-models.html#getting-started-models-lambda:\r\n\r\nIt works when i calling with postman, but when the is SDK generated for IOS the result of the task has ever the following values:\r\n`Optional(<AWSTask: 0x600000278300; completed = YES; cancelled = NO; faulted = NO; result = (null)>) `\r\n\r\nMy code used for this call is:\r\n\r\n`    func testAWS(){\r\n        let client = RDTalkClassClient.default()\r\n        \r\n        \r\n        client.petstorewalkthroughFlattenallGet().continueWith{ (task: AWSTask?) -> AnyObject? in\r\n            if let error = task?.error {\r\n                print(\"Error occurred: \\(error)\")\r\n                return nil\r\n            }\r\n            task?.waitUntilFinished()\r\n            if let completed = task?.isCompleted{\r\n                print(\"i have the result\")\r\n                print(task)\r\n                print(task?.result)\r\n                // Do something with result\r\n            }\r\n            print(\"nil\")\r\n            return nil\r\n        }\r\n}`\r\n\r\nYou can found all my code on my github https://github.com/randalb1991/talkclassIOS\r\n\r\n\r\n### INFO\r\n\r\n* What service are you using?\r\nMy SDK for IOS generated by APIGATEWAY\r\n* In what version of SDK are you facing the problem?\r\n2.6.2\r\n* Is this problem related to specific iOS version?\r\nI don't know\r\n* How are you consuming the SDK? CocoaPods / Carthage / Prebuilt frameworks?\r\nFramework\r\n"}}
{"actor":{"display_login":"randalb1991"}}