{"action":"closed","issue":{"url":"https://api.github.com/repos/NancyFx/Nancy/issues/2487","repository_url":"https://api.github.com/repos/NancyFx/Nancy","labels_url":"https://api.github.com/repos/NancyFx/Nancy/issues/2487/labels{/name}","comments_url":"https://api.github.com/repos/NancyFx/Nancy/issues/2487/comments","events_url":"https://api.github.com/repos/NancyFx/Nancy/issues/2487/events","html_url":"https://github.com/NancyFx/Nancy/issues/2487","id":159593700,"number":2487,"title":"Nancy selfhosting error on ubuntu with Mono","user":{"login":"charleypeng","id":2144710,"avatar_url":"https://avatars.githubusercontent.com/u/2144710?v=3","gravatar_id":"","url":"https://api.github.com/users/charleypeng","html_url":"https://github.com/charleypeng","followers_url":"https://api.github.com/users/charleypeng/followers","following_url":"https://api.github.com/users/charleypeng/following{/other_user}","gists_url":"https://api.github.com/users/charleypeng/gists{/gist_id}","starred_url":"https://api.github.com/users/charleypeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charleypeng/subscriptions","organizations_url":"https://api.github.com/users/charleypeng/orgs","repos_url":"https://api.github.com/users/charleypeng/repos","events_url":"https://api.github.com/users/charleypeng/events{/privacy}","received_events_url":"https://api.github.com/users/charleypeng/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-10T09:22:11Z","updated_at":"2016-06-19T07:23:33Z","closed_at":"2016-06-19T07:23:33Z","body":"\r\nI am using Nancyfx as my restful api server. On windows I use Nancyfx in ASP.NET HOSTING MODE, all works fine on my App. But when I try to use a linux server, the app crushes as I use this code below\r\n\r\nHttpClient client = new HttpClient();\r\nHttpResponseMessage response = await client.GetAsync(\"http://ipaddress:1234/api/info\");\r\nresponse.EnsureSuccessStatusCode();\r\nstring responseBody = await response.Content.ReadAsStringAsync();\r\nthe exception here as below\r\n\r\nAn exception of type 'System.Net.Http.HttpRequestException' occurred in System.Net.Http.dll but was not handled in user code\r\n\r\nAdditional information: 500 (Internal Server Error) but when I use chrome to recieve the content, seems to work fine. Is there something wrong with my code or Nancyfx selfhosting mode?\r\nThanks!"}}
{"actor":{"display_login":"thecodejunkie"}}