{"action":"created","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-unity/issues/118","labels_url":"https://api.github.com/repos/aws/aws-sdk-unity/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-unity/issues/118/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-unity/issues/118/events","html_url":"https://github.com/aws/aws-sdk-unity/issues/118","id":127314408,"number":118,"title":"unity sdk making synchronous calls internally","user":{"login":"madangosain","id":7460383,"avatar_url":"https://avatars.githubusercontent.com/u/7460383?v=3","gravatar_id":"","url":"https://api.github.com/users/madangosain","html_url":"https://github.com/madangosain","followers_url":"https://api.github.com/users/madangosain/followers","following_url":"https://api.github.com/users/madangosain/following{/other_user}","gists_url":"https://api.github.com/users/madangosain/gists{/gist_id}","starred_url":"https://api.github.com/users/madangosain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madangosain/subscriptions","organizations_url":"https://api.github.com/users/madangosain/orgs","repos_url":"https://api.github.com/users/madangosain/repos","events_url":"https://api.github.com/users/madangosain/events{/privacy}","received_events_url":"https://api.github.com/users/madangosain/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aws/aws-sdk-unity/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-01-18T21:27:10Z","updated_at":"2016-01-22T07:18:07Z","closed_at":null,"body":"AWS SDK 2.2, Unity 5.2.4 Max OS 10.10\r\n\r\n1) Calling GetCognitoIdAsync\r\nit internally sometime refreshes the credentials synchronously which leads to dead lock. Logs attached. Is there any workaround?\r\n[AWS-cognito-error.txt](https://github.com/aws/aws-sdk-unity/files/95007/AWS-cognito-error.txt)\r\n\r\nIf this error happen, it'll keep crashing the application forever even after restart. I've to hard delete all locally saved data(credentials) to make it work again. This is a blocker. It's okay if AWS SDK cannot be initialized in case of any error, then game can default to offline mode. But crashing/hanging the game is a blocker. Can we please get an update on this?\r\n\r\nAs a workaround, when does AWS refresh credentials ? If my game can detect it, then as a work around, my game can clean credentials before AWS try to refresh it.\r\n\r\n2) Call GetItem or any first call to the table internally calls Table GetDescription synchronously which again hangs the game. Work-around: Call Table.LoadTableAsync everytime when game starts before making any other call to table. \r\n\r\nBoth of these problems hangs the editor at \"WaitOne\". What is the suggested workaround?  This crashes the application \r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aws/aws-sdk-unity/issues/comments/173831121","html_url":"https://github.com/aws/aws-sdk-unity/issues/118#issuecomment-173831121","issue_url":"https://api.github.com/repos/aws/aws-sdk-unity/issues/118","id":173831121,"user":{"login":"karthiksaligrama","id":3040416,"avatar_url":"https://avatars.githubusercontent.com/u/3040416?v=3","gravatar_id":"","url":"https://api.github.com/users/karthiksaligrama","html_url":"https://github.com/karthiksaligrama","followers_url":"https://api.github.com/users/karthiksaligrama/followers","following_url":"https://api.github.com/users/karthiksaligrama/following{/other_user}","gists_url":"https://api.github.com/users/karthiksaligrama/gists{/gist_id}","starred_url":"https://api.github.com/users/karthiksaligrama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karthiksaligrama/subscriptions","organizations_url":"https://api.github.com/users/karthiksaligrama/orgs","repos_url":"https://api.github.com/users/karthiksaligrama/repos","events_url":"https://api.github.com/users/karthiksaligrama/events{/privacy}","received_events_url":"https://api.github.com/users/karthiksaligrama/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T07:18:06Z","updated_at":"2016-01-22T07:18:06Z","body":"This is related to #88 . The following API need to be called on Background thread CreateBatchWrite, CreateBatchGet, QueryAsync, ScanAsync.\r\n\r\nI'm not sure why you did not get the Network on mainthread exception. But i just tested your code seems to run when you calls these api's on the threadpool thread.\r\n"}}