{"action":"created","issue":{"url":"https://api.github.com/repos/babelshift/SteamWebAPI2/issues/27","repository_url":"https://api.github.com/repos/babelshift/SteamWebAPI2","labels_url":"https://api.github.com/repos/babelshift/SteamWebAPI2/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/babelshift/SteamWebAPI2/issues/27/comments","events_url":"https://api.github.com/repos/babelshift/SteamWebAPI2/issues/27/events","html_url":"https://github.com/babelshift/SteamWebAPI2/issues/27","id":191827200,"number":27,"title":"GetFriendsListAsync() returns Unauthorized code 401.","user":{"login":"Tvde1","id":11540531,"avatar_url":"https://avatars.githubusercontent.com/u/11540531?v=3","gravatar_id":"","url":"https://api.github.com/users/Tvde1","html_url":"https://github.com/Tvde1","followers_url":"https://api.github.com/users/Tvde1/followers","following_url":"https://api.github.com/users/Tvde1/following{/other_user}","gists_url":"https://api.github.com/users/Tvde1/gists{/gist_id}","starred_url":"https://api.github.com/users/Tvde1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tvde1/subscriptions","organizations_url":"https://api.github.com/users/Tvde1/orgs","repos_url":"https://api.github.com/users/Tvde1/repos","events_url":"https://api.github.com/users/Tvde1/events{/privacy}","received_events_url":"https://api.github.com/users/Tvde1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-26T21:17:15Z","updated_at":"2016-11-26T22:38:27Z","closed_at":null,"body":"Here I am yet again.\r\n\r\nI receive an error on:\r\n`friendsList = await key.GetFriendsListAsync(steam64ID);`\r\n\r\nThere's the message.\r\n\r\n    Exception thrown: 'System.Net.Http.HttpRequestException' in mscorlib.dll\r\n\r\n    Additional information: Response status code does not indicate success: 401 (Unauthorized).\r\n\r\n    If there is a handler for this exception, the program may be safely continued.\r\n\r\nThe key and the steamId I use seem to be correct after breaking.\r\n\r\nHere is the full error:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/11540531/20643924/0a13fa3e-b426-11e6-82c5-a897948bde29.png)\r\n\r\nEDIT: The API seems to be working when I use `http://api.steampowered.com/ISteamUser/GetFriendList/v0001/?key=[KEY]&steamid=[ID]`."},"comment":{"url":"https://api.github.com/repos/babelshift/SteamWebAPI2/issues/comments/263090187","html_url":"https://github.com/babelshift/SteamWebAPI2/issues/27#issuecomment-263090187","issue_url":"https://api.github.com/repos/babelshift/SteamWebAPI2/issues/27","id":263090187,"user":{"login":"babelshift","id":2723423,"avatar_url":"https://avatars.githubusercontent.com/u/2723423?v=3","gravatar_id":"","url":"https://api.github.com/users/babelshift","html_url":"https://github.com/babelshift","followers_url":"https://api.github.com/users/babelshift/followers","following_url":"https://api.github.com/users/babelshift/following{/other_user}","gists_url":"https://api.github.com/users/babelshift/gists{/gist_id}","starred_url":"https://api.github.com/users/babelshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babelshift/subscriptions","organizations_url":"https://api.github.com/users/babelshift/orgs","repos_url":"https://api.github.com/users/babelshift/repos","events_url":"https://api.github.com/users/babelshift/events{/privacy}","received_events_url":"https://api.github.com/users/babelshift/received_events","type":"User","site_admin":false},"created_at":"2016-11-26T22:38:27Z","updated_at":"2016-11-26T22:38:27Z","body":"OK so I've confirmed your suspicions. In fact, the Steam Web API actually returns a 401 unauthorized HTTP response instead of indicating the user's profile is private. I don't agree with their approach since 401 should be reserved for authentication/authorization failures (such as if a Steam Web API key is invalid). \r\n\r\nRegardless, this is the expected behavior. Your solution seems like it would work."}}
{"actor":{"display_login":"babelshift"}}