{"action":"created","issue":{"url":"https://api.github.com/repos/playgameservices/play-games-plugin-for-unity/issues/1107","repository_url":"https://api.github.com/repos/playgameservices/play-games-plugin-for-unity","labels_url":"https://api.github.com/repos/playgameservices/play-games-plugin-for-unity/issues/1107/labels{/name}","comments_url":"https://api.github.com/repos/playgameservices/play-games-plugin-for-unity/issues/1107/comments","events_url":"https://api.github.com/repos/playgameservices/play-games-plugin-for-unity/issues/1107/events","html_url":"https://github.com/playgameservices/play-games-plugin-for-unity/issues/1107","id":148034156,"number":1107,"title":"Error in fetching scores from leaderboard","user":{"login":"srinivaassunil","id":10563463,"avatar_url":"https://avatars.githubusercontent.com/u/10563463?v=3","gravatar_id":"","url":"https://api.github.com/users/srinivaassunil","html_url":"https://github.com/srinivaassunil","followers_url":"https://api.github.com/users/srinivaassunil/followers","following_url":"https://api.github.com/users/srinivaassunil/following{/other_user}","gists_url":"https://api.github.com/users/srinivaassunil/gists{/gist_id}","starred_url":"https://api.github.com/users/srinivaassunil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srinivaassunil/subscriptions","organizations_url":"https://api.github.com/users/srinivaassunil/orgs","repos_url":"https://api.github.com/users/srinivaassunil/repos","events_url":"https://api.github.com/users/srinivaassunil/events{/privacy}","received_events_url":"https://api.github.com/users/srinivaassunil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-04-13T11:46:49Z","updated_at":"2016-04-19T17:01:40Z","closed_at":null,"body":"Hi there,\r\nI have 4 leader boards in my game and i wanted to fetch all current player scores and apply them locally so that scores are in sync across all devices bearing same account.When i request score from any one of the leader boards ,it is working fine but when i try to fetch them all sequentially it resulted in the following error.\r\n\r\n\r\n--------------------------------------------------------------------------------------------------------------------\r\n```\r\n04-13 11:59:08.736   536   675 W Unity   : !!! [Play Games Plugin DLL] 04/13/16 11:59:08 +05:30 WARNING: Error returned from fetch: ERROR_INTERNAL\r\n\r\n04-13 11:59:08.736   536   675 W Unity   :  \r\n\r\n04-13 11:59:08.736   536   675 W Unity   : (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)\r\n\r\n04-13 11:59:08.736   536   675 W Unity   : \r\n\r\n04-13 11:59:08.813   536   675 W Unity   : *** [Play Games Plugin DLL] 04/13/16 11:59:08 +05:30 ERROR: Error encountered executing LeaderboardManager#InternalFetchCallback. Smothering to avoid passing exception into Native: System.NullReferenceException: Object reference not set to an instance of an object\r\n\r\n04-13 11:59:08.813   536   675 W Unity   :   at GooglePlayGamesManager+<syncScore>c__AnonStorey9E.<>m__138 (GooglePlayGames.BasicApi.LeaderboardScoreData data) [0x00000] in G:\\Workspaces\\sineline\\SINELINE_ANDROID\\3.3\\Sine Line\\Assets\\scripts\\GooglePlayGamesManager.cs:153 \r\n\r\n04-13 11:59:08.813   536   675 W Unity   :   at GooglePlayGames.Native.PInvoke.LeaderboardManager.HandleFetch (GooglePlayGames.BasicApi.ScorePageToken token, GooglePlayGames.Native.PInvoke.FetchResponse response, System.String selfPlayerId, Int32 maxResults, System.Action`1 callback) [0x00079] in G:\\Workspaces\\sineline\\SINELINE_ANDROID\\3.3\\Sine Line\\Assets\\GooglePlayGames\\Platforms\\Native\\PInvoke\\LeaderboardManager.cs:150 \r\n\r\n04-13 11:59:08.813   536   675 W Unity   :   at GooglePlayGames.Native.PInvoke.LeaderboardManager+<LoadLeaderboardData>c__AnonStorey94.<>m__F1 (GooglePlayGames.Native.PInvoke.FetchRespons\r\n```\r\n-----------------------------------------------------------------------------------------------------------------------------\r\n\r\nThis is what i did(c# code)\r\n\r\n-----------------------------------------------------------------------------------------------------------------------------\r\n```\r\npublic string FetchFromLeaderBoard (string LID)\r\n\t{\r\n\t\tstring res = \"\";\r\n\t\tif (Social.localUser.authenticated) {\r\n\t\t\ttry {\r\n\t\t\t\tPlayGamesPlatform.Instance.LoadScores (\r\n\t\t\t\t\tLID,\r\n\t\t\t\t\tLeaderboardStart.PlayerCentered,\r\n\t\t\t\t\t1,\r\n\t\t\t\t\tLeaderboardCollection.Public,\r\n\t\t\t\t\tLeaderboardTimeSpan.AllTime,\r\n\t\t\t\t\t(LeaderboardScoreData data) => {\r\n\t\t\t\t\t\tres = data.PlayerScore.formattedValue;\r\n\t\t\t\t\t\tDebug.Log (\"player score at `leaderboard` is  \" + data.PlayerScore.formattedValue);\r\n\t\t\t\t\t});\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tDebug.Log (e.StackTrace);\r\n\t\t\t} \r\n\t\t} else {\r\n\r\n\t\t\tDebug.Log (\"failed to sync LB\");\r\n\t\t}\r\n\t\treturn res;\r\n\t\t\r\n\t}\r\n\r\n.-----------------------------------------------------------------------------------------------------------------------------\r\ncl_mostNearmisses = FetchFromLeaderBoard (GPG_CONSTANTS.leaderboard_most_near_misses_in_a_game);\r\n\t\tcl_moststreaks = FetchFromLeaderBoard (GPG_CONSTANTS.leaderboard_most_streaks_in_a_game);\r\n\t\tcl_total = FetchFromLeaderBoard (GPG_CONSTANTS.leaderboard_total_score);\r\n\r\n```\r\n\r\nThis gives an error.Anyone could you please help!.\r\n\r\nThanks in Advance\r\nLOG FILE: \r\n[sllog.txt](https://github.com/playgameservices/play-games-plugin-for-unity/files/216977/sllog.txt)\r\n"},"comment":{"url":"https://api.github.com/repos/playgameservices/play-games-plugin-for-unity/issues/comments/212017006","html_url":"https://github.com/playgameservices/play-games-plugin-for-unity/issues/1107#issuecomment-212017006","issue_url":"https://api.github.com/repos/playgameservices/play-games-plugin-for-unity/issues/1107","id":212017006,"user":{"login":"srinivaassunil","id":10563463,"avatar_url":"https://avatars.githubusercontent.com/u/10563463?v=3","gravatar_id":"","url":"https://api.github.com/users/srinivaassunil","html_url":"https://github.com/srinivaassunil","followers_url":"https://api.github.com/users/srinivaassunil/followers","following_url":"https://api.github.com/users/srinivaassunil/following{/other_user}","gists_url":"https://api.github.com/users/srinivaassunil/gists{/gist_id}","starred_url":"https://api.github.com/users/srinivaassunil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srinivaassunil/subscriptions","organizations_url":"https://api.github.com/users/srinivaassunil/orgs","repos_url":"https://api.github.com/users/srinivaassunil/repos","events_url":"https://api.github.com/users/srinivaassunil/events{/privacy}","received_events_url":"https://api.github.com/users/srinivaassunil/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T17:01:40Z","updated_at":"2016-04-19T17:01:40Z","body":"Thank you  @claywilkinson ."}}