{"action":"created","issue":{"url":"https://api.github.com/repos/spacez320/dart-rest/issues/3","labels_url":"https://api.github.com/repos/spacez320/dart-rest/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/spacez320/dart-rest/issues/3/comments","events_url":"https://api.github.com/repos/spacez320/dart-rest/issues/3/events","html_url":"https://github.com/spacez320/dart-rest/issues/3","id":71109533,"number":3,"title":"Wrong type of `post`in `HttpRestRequest`","user":{"login":"dkokic","id":213902,"avatar_url":"https://avatars.githubusercontent.com/u/213902?v=3","gravatar_id":"","url":"https://api.github.com/users/dkokic","html_url":"https://github.com/dkokic","followers_url":"https://api.github.com/users/dkokic/followers","following_url":"https://api.github.com/users/dkokic/following{/other_user}","gists_url":"https://api.github.com/users/dkokic/gists{/gist_id}","starred_url":"https://api.github.com/users/dkokic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkokic/subscriptions","organizations_url":"https://api.github.com/users/dkokic/orgs","repos_url":"https://api.github.com/users/dkokic/repos","events_url":"https://api.github.com/users/dkokic/events{/privacy}","received_events_url":"https://api.github.com/users/dkokic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-26T19:30:35Z","updated_at":"2015-05-17T20:21:19Z","closed_at":null,"body":"Dart SDK 1.9.3\r\n\r\n```\r\nUncaught Error: type 'Uri' is not a subtype of type 'String' of 'path'.\r\nStack Trace:\r\n#0      HttpRestRequest.HttpRestRequest (package:rest/http_rest_request.dart:18:30)\r\n#1      HttpRestRequest.HttpRestRequest.fromRequest (package:rest/http_rest_request.dart:24:5)\r\n#2      HttpRest.act (package:rest/http_rest.dart:148:26)\r\n#3      HttpRest.resolve (package:rest/http_rest.dart:102:27)\r\n```"},"comment":{"url":"https://api.github.com/repos/spacez320/dart-rest/issues/comments/102847922","html_url":"https://github.com/spacez320/dart-rest/issues/3#issuecomment-102847922","issue_url":"https://api.github.com/repos/spacez320/dart-rest/issues/3","id":102847922,"user":{"login":"spacez320","id":805695,"avatar_url":"https://avatars.githubusercontent.com/u/805695?v=3","gravatar_id":"","url":"https://api.github.com/users/spacez320","html_url":"https://github.com/spacez320","followers_url":"https://api.github.com/users/spacez320/followers","following_url":"https://api.github.com/users/spacez320/following{/other_user}","gists_url":"https://api.github.com/users/spacez320/gists{/gist_id}","starred_url":"https://api.github.com/users/spacez320/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spacez320/subscriptions","organizations_url":"https://api.github.com/users/spacez320/orgs","repos_url":"https://api.github.com/users/spacez320/repos","events_url":"https://api.github.com/users/spacez320/events{/privacy}","received_events_url":"https://api.github.com/users/spacez320/received_events","type":"User","site_admin":false},"created_at":"2015-05-17T20:21:19Z","updated_at":"2015-05-17T20:21:19Z","body":"I believe this is fixed in 0cca10b6ee059d587bf0bfe787a5829e7991af07\r\n\r\nTurns out I had completely forgotten about Dart's 'checked compilation' feature and the library was riddled with broken things.\r\n\r\nOne thing to note is that your endpoints will no longer call the factory-ish `build` method of `HttpRestResponse`, but should just create `HttpRestResponse` objects with the same arguments.\r\n\r\nExample;\r\n\r\n```dart\r\n// change this\r\nreturn HttpRestResponse.build(200, 'awesome');\r\n// to this\r\nreturn HttpRestResponse(200, 'awesome');\r\n```\r\n\r\nCan you confirm that things are working better? Thanks for your help."}}