server-side render error when there is no network connection #650

Closed
opened 2025-08-09 17:17:06 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @ghost on 6/20/2017

I create a template with yo generator
and debug it with visual studio and everything work fine.
but when I disable my network and put my laptop in airplane mode and go to http://localhost:51302/fetchdata and refresh the page for server render, application throw this error

An unhandled exception occurred while processing the request.
Exception: Call to Node module failed with error: Error
at ClientRequest.<anonymous> (C:\Users\raika\Desktop\a\ClientApp\dist\vendor.js:40132:11)
at emitOne (events.js:115:13)
at ClientRequest.emit (events.js:210:7)
at Socket.socketErrorListener (_http_client.js:400:9)
at emitOne (events.js:115:13)
at Socket.emit (events.js:210:7)
at emitErrorNT (internal/streams/destroy.js:62:8)
at _combinedTickCallback (internal/process/next_tick.js:102:11)
at process._tickDomainCallback (internal/process/next_tick.js:198:9)

Microsoft.AspNetCore.NodeServices.HostingModels.HttpNodeInstance+<InvokeExportAsync>d__7.MoveNext()

if there is any network connection even unreachable network, page would load fine.
why is this happening? is this happening just for me?

*Originally created by @ghost on 6/20/2017* I create a template with yo generator and debug it with visual studio and everything work fine. but when I disable my network and put my laptop in airplane mode and go to `http://localhost:51302/fetchdata` and refresh the page for server render, application throw this error ``` An unhandled exception occurred while processing the request. Exception: Call to Node module failed with error: Error at ClientRequest.<anonymous> (C:\Users\raika\Desktop\a\ClientApp\dist\vendor.js:40132:11) at emitOne (events.js:115:13) at ClientRequest.emit (events.js:210:7) at Socket.socketErrorListener (_http_client.js:400:9) at emitOne (events.js:115:13) at Socket.emit (events.js:210:7) at emitErrorNT (internal/streams/destroy.js:62:8) at _combinedTickCallback (internal/process/next_tick.js:102:11) at process._tickDomainCallback (internal/process/next_tick.js:198:9) Microsoft.AspNetCore.NodeServices.HostingModels.HttpNodeInstance+<InvokeExportAsync>d__7.MoveNext() ``` if there is any network connection even unreachable network, page would load fine. why is this happening? is this happening just for me?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#650
No description provided.