-
Notifications
You must be signed in to change notification settings - Fork 518
Intermittent Exception(s) occur launching ReactGrid, ReactReduxSpa #116
Comments
Update 1:When I wrote the issue above, both ReactGrid and ReactReduxSpa were giving the same exceptions (IIS Express was listening on 49552). I just now changed the Startup Project in VS 2015 to ReactGrid, attempted to run it (unsuccessfully) without stopping ReactReduxSpa (49552), then switched the Startup Project back to ReactReduxSpa and it's launching without error... for now. I'm not sure if this has anything to do with anything but I'm just throwing it out there. |
Update 2:I just used the yeoman generator instead of running the template(s) directly and I'm no longer getting the dev exception page with the stack trace. However, I am still seeing the exception crop up in bursts of 4 or 5 every time I refresh the browser in the Debug output in VS:
|
Update 3After a cold boot of Windows 7 SP1, the page of death included in my original post came back in Chrome 51. I tried waiting and refreshing the browser several times to no avail. A few minutes later I launched IE 11 and the site rendered properly there. Immediately after that, the site was also rendering fine in Chrome. No other user interactions were taken. |
I changed my exception settings to break on all .NET Exceptions, which reveals: System.Net.Http.WinHttpException occurred at this location: ..I see someone else is having a similar issue: As the SO poster suggests, if I comment out the prerender tag helpers in Index.cshtml, the problem goes away. Any thoughts? Thanks! |
I'm not certain what specific problem occurs with Rather than get too deep into that, can you try the following possible workaround? Instead of using the HTTP-based .NET/Node interop, you can switch over to a new hosting model which is soon going to become the new default, because it's faster than the HTTP interop mechanism.
This at least avoids the HTTP aspect of things. Does this work? |
Hi Steve, unfortunately that didn't seem to work. I'm still getting the WinHttpException for one. I'll provide more details shortly. |
The symptoms remain intermittent. At times, I get 502.3 Bad Gateway (details below) when launching the app for the first time. (This never happened before I modified the code per your instructions.) Sometimes, a browser refresh will allow the page to display properly, but I still see 4 "WinHttpException"s in the VS output window. HTTP Error 502.3 - Bad Gateway Most likely causes: Things you can try: Detailed Error Information: More Information: |
Thanks for the updated information. Sorry this is being troublesome for you. Is it still definitely only happening on your Windows 7 machine and not on Windows 10? It's not likely that I'm going to have capacity to investigate this if it's Windows 7-specific. The error looks pretty low-level and most likely is independent of anything that NodeServices controls directly. If you are able to diagnose this fault I'd be very interested to know the details. Otherwise, at least in the short term, we might have to amend the requirements list for |
I'll try on Windows 10 today and post back.
Yup. In the meantime, I'll try to dust off my WinDbg+SOS when I have some time and see if I can get to the root of it. I'd love to be able to get SSR; it's a great selling point and a shame to have to disable it. |
The following exception occurs on both Windows 7 SP1 and Windows 10: Object reference not set to an instance of an object.
This exception is also intermittent and it's sometimes displayed by the DeveloperExceptionPageMiddleware. Other times, it results in "HTTP Error 502.3 - Bad Gateway" as mentioned earlier, and sometimes it works fine. It seems I can always repro it after restarting VS, however. |
If you can provide any information on how to repro that (even if the repro is intermittent like you mention) that would be great. It's difficult to begin any investigation without that info. Based on the stack trace you posted, I identified one line of code in I've fixed this (3fc19ea) and pushed an updated build of all the packages. The new package version for all of them, which includes this fix, is 1.0.0-beta-000004 (e.g., https://www.nuget.org/packages/Microsoft.AspNetCore.NodeServices/1.0.0-beta-000004). Can you please update to beta-000004 and check if the problem still occurs? If it does, I'll need more detailed steps that reproducing the issue (even if intermittently). Thanks! |
Thanks, Steve. It's been a while since I pulled down the latest. I will try this today and post back. |
Ok. I installed the latest yeoman generator and generated a fresh React-Redux app. No signs of WinHttpException so far (fingers crossed)! The following may no longer be relevant, but if I add: then I still either get "HTTP Error 502.3 - Bad Gateway" or:
Speaking of, is Socket the new DefaultNodeHostingModel? It looks like it may still be Http, which contradicts the docs: Code:
|
(cont.) My latest error looks like a duplicate of #110. I'm using beta 00004. |
You're right that these are currently inconsistent, but that won't be fore long. Socket will be the new default hosting model, but isn't in the current packages. I wrote in the docs that it is because it will be very soon.
OK then, closing this as a duplicate of #110. |
On Windows 7 SP1, I'm experiencing intermittent exception(s) launching ReactGrid, ReactReduxSpa. Exception details can be found below. I have not been able to repro on my Win10 machine using Chrome, IE, or Edge.
First, I suspected it was a MAXPATH issue because my content dir was several levels deep, but I cloned the repo into a short path C:\Git\JavaScriptServices\ and am still experiencing this behavior. I've also noticed that ReactGrid and ReactReduxSpa (AFAIK) are the 2 React projects that employ SSR. I haven't been able to repro this on Windows 7 SP1 with the simple (CSR-only) ReactSpa using Chrome 50 or IE 11.
Internal Server Error.html.txt
Raw Details:
The text was updated successfully, but these errors were encountered: