Title: Angular 2 in debug mode not working with InputOutputStream · Issue #93 · aspnet/JavaScriptServices · GitHub
Open Graph Title: Angular 2 in debug mode not working with InputOutputStream · Issue #93 · aspnet/JavaScriptServices
X Title: Angular 2 in debug mode not working with InputOutputStream · Issue #93 · aspnet/JavaScriptServices
Description: Steps to reproduce Open solution Select Angular2Spa from templates as startup project Change HostingModel by adding following code in ConfigureServices method: services.AddNodeServices(new NodeServicesOptions { HostingModel = NodeHosting...
Open Graph Description: Steps to reproduce Open solution Select Angular2Spa from templates as startup project Change HostingModel by adding following code in ConfigureServices method: services.AddNodeServices(new NodeServ...
X Description: Steps to reproduce Open solution Select Angular2Spa from templates as startup project Change HostingModel by adding following code in ConfigureServices method: services.AddNodeServices(new NodeServ...
Opengraph URL: https://github.com/aspnet/JavaScriptServices/issues/93
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Angular 2 in debug mode not working with InputOutputStream","articleBody":"### Steps to reproduce\n1. Open solution\n2. Select Angular2Spa from templates as startup project\n3. Change `HostingModel` by adding following code in `ConfigureServices` method:\n\n```\n services.AddNodeServices(new NodeServicesOptions\n {\n HostingModel = NodeHostingModel.InputOutputStream\n });\n```\n1. Open any page\n2. See exception\n\n```\nJsonReaderException: Unexpected character encountered while parsing value: A. Path '', line 0, position 0.\n```\n### The issue\n\nPage not load, and exception accured\n\n```\nJsonReaderException: Unexpected character encountered while parsing value: A. Path '', line 0, position 0.\n```\n### Further technical details\n\nThis is pretty easy issue - right now `InputOutputStreamNodeInstance` wait for first recieved data from Node, and claim it as boot function response. With ng2 it not so, since in development mode it everytime produce message: `Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.`\nTo fix this issue we need implement some kind of filtering our result. Root couse placed inside `OnOutputDataReceived` method in `InputOutputStreamNodeInstance` class.\n","author":{"url":"https://github.com/laskoviymishka","@type":"Person","name":"laskoviymishka"},"datePublished":"2016-05-24T08:06:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/93/JavaScriptServices/issues/93"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9d536cad-32f8-404f-a12a-42d2041bd50c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AA48:119AFD:26F6D26:344CD77:6974237C |
| html-safe-nonce | 383eaf9190c61ce8bc36625ed287301034c89c1bb7c0ea4f01f696ac6d87a71c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTQ4OjExOUFGRDoyNkY2RDI2OjM0NENENzc6Njk3NDIzN0MiLCJ2aXNpdG9yX2lkIjoiNTYzNDEyMTkyNDU1ODI4MzQ4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e8550a49eebff13e55377b48a2ebd8fe6df16489200ed8eebf2c47028b849bb2 |
| hovercard-subject-tag | issue:156444389 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/aspnet/JavaScriptServices/93/issue_layout |
| twitter:image | https://opengraph.githubassets.com/38469b7351d8753aec0ff6a5db1cbf5597b64b6851d0e07ca21d3b51d1a2cfdf/aspnet/JavaScriptServices/issues/93 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/38469b7351d8753aec0ff6a5db1cbf5597b64b6851d0e07ca21d3b51d1a2cfdf/aspnet/JavaScriptServices/issues/93 |
| og:image:alt | Steps to reproduce Open solution Select Angular2Spa from templates as startup project Change HostingModel by adding following code in ConfigureServices method: services.AddNodeServices(new NodeServ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | laskoviymishka |
| hostname | github.com |
| expected-hostname | github.com |
| None | 447dc9917c3d68d647a01abfdefe55ec7ee1785922136c1d8395dbb3ab6d57b9 |
| turbo-cache-control | no-preview |
| go-import | github.com/aspnet/JavaScriptServices git https://github.com/aspnet/JavaScriptServices.git |
| octolytics-dimension-user_id | 6476660 |
| octolytics-dimension-user_login | aspnet |
| octolytics-dimension-repository_id | 45365298 |
| octolytics-dimension-repository_nwo | aspnet/JavaScriptServices |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 45365298 |
| octolytics-dimension-repository_network_root_nwo | aspnet/JavaScriptServices |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8dad7bdfecbe3eaa97ac4e632d6b47e2b23e81d9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width