{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/750","repository_url":"https://api.github.com/repos/aws/aws-sdk-ios","labels_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/750/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/750/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/750/events","html_url":"https://github.com/aws/aws-sdk-ios/issues/750","id":265174634,"number":750,"title":"DynamoDBObjectMapper .load returning empty Mapped Class","user":{"login":"murphman300","id":21324779,"avatar_url":"https://avatars3.githubusercontent.com/u/21324779?v=4","gravatar_id":"","url":"https://api.github.com/users/murphman300","html_url":"https://github.com/murphman300","followers_url":"https://api.github.com/users/murphman300/followers","following_url":"https://api.github.com/users/murphman300/following{/other_user}","gists_url":"https://api.github.com/users/murphman300/gists{/gist_id}","starred_url":"https://api.github.com/users/murphman300/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/murphman300/subscriptions","organizations_url":"https://api.github.com/users/murphman300/orgs","repos_url":"https://api.github.com/users/murphman300/repos","events_url":"https://api.github.com/users/murphman300/events{/privacy}","received_events_url":"https://api.github.com/users/murphman300/received_events","type":"User","site_admin":false},"labels":[{"id":690070761,"url":"https://api.github.com/repos/aws/aws-sdk-ios/labels/DynamoDB","name":"DynamoDB","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2017-10-13T05:34:36Z","updated_at":"2018-04-11T00:41:50Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nSo I'm working through the learning curve of your tutorial here, but i've encountered an issue when trying to load an item. The returned item is empty, as in, a properly classed blank object.\r\n\r\nContext : I've used the same variables as your IOS tutorial (Book class, ISBN key, Author and Name)\r\n\r\nRoles are set properly, as i do get a result.\r\n\r\nhowever:\r\n\r\n```\r\n       var mapper = AWSDynamoDBObjectMapper.default()\r\n\r\n        mapper.load(Book.self, hashKey: \"1234567890\", rangeKey: nil).continueWith { (task: AWSTask<AnyObject>!) -> Any? in\r\n            if let error = task.error as? NSError {\r\n                print(\"The request failed. Error: \\(error)\", task)\r\n            } else if let resultBook = task.result as? Book {\r\n                print(\"Got it\")\r\n                print(resultBook)\r\n            }\r\n            return nil\r\n        }\r\n```\r\n\r\nreturns\r\n```\r\n\r\nGot it\r\n<sectest.Book: 0x1700d4580> {\r\n}\r\n```\r\n\r\nThe class : \r\n\r\n```\r\nclass Book : AWSDynamoDBObjectModel, AWSDynamoDBModeling  {\r\n    var Title:String?\r\n    var Author:String?\r\n    var ISBN:String?\r\n    \r\n    static func dynamoDBTableName() -> String {\r\n    return \"Books\"\r\n    }\r\n    \r\n    static func hashKeyAttribute() -> String {\r\n        return \"ISBN\"\r\n    }\r\n\r\n}\r\n```\r\n\r\nSo My guess is that it is not mapping the JSON queried item properly, since it is clearly managing to conform the reply to the Book class? I've looked through all official tutorials and documentation on this with no avail so far.\r\n\r\nAm i missing some kind of override or other protocol method?\r\n\r\nThe Table itself on dynamodb along with the role being used was followed according to this tutorial:\r\n\r\nhttp://docs.aws.amazon.com/mobile/sdkforios/developerguide/dynamodb-setup-for-ios.html\r\n\r\n### To help us solve your problem better, please answer the following list of questions.\r\n\r\n* What service are you using?\r\nAWSIncognito and AWSDynamoDB for iOS\r\n\r\n* In what version of SDK are you facing the problem?\r\n2.6.4\r\n\r\n* Is the issue limited to Simulators / Actual Devices?\r\nSeems to happen on both\r\n\r\n* Can your problem be resolved if you bump to a higher version of SDK?\r\nNo\r\n\r\n* Is this problem related to specific iOS version?\r\nNot as far as I can tell\r\n\r\n* How are you consuming the SDK? CocoaPods / Carthage / Prebuilt frameworks?\r\nCocoapods\r\n\r\n* Can you give us steps to reproduce with a minimal, complete, and verifiable example? Please include any specific network conditions that might be required to reproduce the problem.\r\nFollow the official Setting Up DynamoDB steps of AWS Mobile SDK for iOS\r\n\r\nIf you need help with understanding how to implement something in particular then we suggest that you first look into our [developer guide](https://docs.aws.amazon.com/mobile/sdkforios/developerguide/). You can also simplify your process of creating an application by using [Mobile Hub](https://console.aws.amazon.com/mobilehub/home#/). "},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/comments/380290569","html_url":"https://github.com/aws/aws-sdk-ios/issues/750#issuecomment-380290569","issue_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/750","id":380290569,"user":{"login":"stale[bot]","id":26384082,"avatar_url":"https://avatars3.githubusercontent.com/in/1724?v=4","gravatar_id":"","url":"https://api.github.com/users/stale%5Bbot%5D","html_url":"https://github.com/apps/stale","followers_url":"https://api.github.com/users/stale%5Bbot%5D/followers","following_url":"https://api.github.com/users/stale%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/stale%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/stale%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stale%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/stale%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/stale%5Bbot%5D/repos","events_url":"https://api.github.com/users/stale%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/stale%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-04-11T00:41:49Z","updated_at":"2018-04-11T00:41:49Z","author_association":"NONE","body":"This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.\n"}}
{"actor":{"display_login":"stale"}}