{"action":"closed","issue":{"url":"https://api.github.com/repos/RSuter/NSwag/issues/860","repository_url":"https://api.github.com/repos/RSuter/NSwag","labels_url":"https://api.github.com/repos/RSuter/NSwag/issues/860/labels{/name}","comments_url":"https://api.github.com/repos/RSuter/NSwag/issues/860/comments","events_url":"https://api.github.com/repos/RSuter/NSwag/issues/860/events","html_url":"https://github.com/RSuter/NSwag/issues/860","id":246302179,"number":860,"title":"401 (Unauthorized) error with SwaggerDocument.FromUrlAsync","user":{"login":"frank71336","id":28701290,"avatar_url":"https://avatars0.githubusercontent.com/u/28701290?v=4","gravatar_id":"","url":"https://api.github.com/users/frank71336","html_url":"https://github.com/frank71336","followers_url":"https://api.github.com/users/frank71336/followers","following_url":"https://api.github.com/users/frank71336/following{/other_user}","gists_url":"https://api.github.com/users/frank71336/gists{/gist_id}","starred_url":"https://api.github.com/users/frank71336/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frank71336/subscriptions","organizations_url":"https://api.github.com/users/frank71336/orgs","repos_url":"https://api.github.com/users/frank71336/repos","events_url":"https://api.github.com/users/frank71336/events{/privacy}","received_events_url":"https://api.github.com/users/frank71336/received_events","type":"User","site_admin":false},"labels":[{"id":255705718,"url":"https://api.github.com/repos/RSuter/NSwag/labels/bug","name":"bug","color":"d93f0b","default":true},{"id":255705721,"url":"https://api.github.com/repos/RSuter/NSwag/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-07-28T09:58:23Z","updated_at":"2018-02-24T10:52:30Z","closed_at":"2018-02-24T10:52:30Z","author_association":"NONE","body":"Hi,\r\n\r\nBoth\r\n\r\n`document = await SwaggerDocument.FromJsonAsync(json);`\r\n\r\nand\r\n\r\n`document = await SwaggerDocument.FromFileAsync(@\"c:\\temp\\swagger.json\");`\r\n\r\nwork fine for me, but using\r\n\r\n`document = await SwaggerDocument.FromUrlAsync(\"http://localhost/PasswordService/swagger/docs/v1\");`\r\n\r\nI always get an exception \"**Response status code does not indicate success: 401 (Unauthorized).**\" although the URL is correct when entering it in Browser or using it in a manual C# GET request. (Chrome says \"Resource interpreted as Document but transferred with MIME type application/json\").\r\n\r\nAny ideas?\r\n\r\n(Web Server requires Windows Authentication. So I have to use Windows Authentication when doing the manual C# GET request, of cause. So maybe the question is: How can I use Windows Authentication when using \"SwaggerDocument.FromUrlAsync\" ?)"}}
{"actor":{"display_login":"frank71336"}}