Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sockjs-client 1.5.0. sockjs.js:2999 WebSocket is closed before the connection is established #527

Closed
erictor opened this issue Dec 20, 2020 · 4 comments

Comments

@erictor
Copy link

erictor commented Dec 20, 2020

On an Angular 11 application, this never happened until I updated to .NET 5 (from .NET Core 3.1), Angular 11, and sockjs-client 1.5.0. This error occurs almost every time the application is started (i.e. on browser reload). An impact of this error is that Live Reload doesn't work.

sockjs.js:2999
WebSocket connection to 'wss://localhost:44308/sockjs-node/976/rlcfczpw/websocket' 
failed: WebSocket is closed before the connection is established.

WebSocketTransport.close @sockjs.js:2999
SockJS._transportTimeout @sockjs.js:844
invokeTask               @zone-evergreen.js:402
runTask                  @zone-evergreen.js:174
invokeTask               @zone-evergreen.js:483
ZoneTask.invoke          @zone-evergreen.js:472
timer                    @zone-evergreen.js:2538
setTimeout (async)      
scheduleTask             @zone-evergreen.js:2559
scheduleTask             @zone-evergreen.js:389
scheduleTask             @zone-evergreen.js:217
scheduleMacroTask        @zone-evergreen.js:240
scheduleMacroTaskWithCurrentZone           @zone-evergreen.js:675
(anonymous)              @zone-evergreen.js:2574
proto.<computed>         @zone-evergreen.js:971
SockJS._connect          @sockjs.js:823
SockJS._receiveInfo      @sockjs.js:803
g                        @sockjs.js:66
EventEmitter.emit        @sockjs.js:86
(anonymous)              @sockjs.js:567
g                        @sockjs.js:66
EventEmitter.emit        @sockjs.js:86
(anonymous)              @sockjs.js:374
g                        @sockjs.js:66
EventEmitter.emit        @sockjs.js:86
xhr.onreadystatechange   @sockjs.js:1598
wrapFn                   @zone-evergreen.js:759
invokeTask               @zone-evergreen.js:402
runTask                  @zone-evergreen.js:174
invokeTask               @zone-evergreen.js:483
invokeTask               @zone-evergreen.js:1596
globalZoneAwareCallback  @zone-evergreen.js:1622
XMLHttpRequest.send (async)     
scheduleTask             @zone-evergreen.js:2845
scheduleTask             @zone-evergreen.js:389
scheduleTask             @zone-evergreen.js:217
scheduleMacroTask        @zone-evergreen.js:240
scheduleMacroTaskWithCurrentZone           @zone-evergreen.js:675
(anonymous) @zone-evergreen.js:2878
proto.<computed>         @zone-evergreen.js:971
AbstractXHRObject._start @sockjs.js:1606
(anonymous)              @sockjs.js:1495
invokeTask               @zone-evergreen.js:402
runTask                  @zone-evergreen.js:174
invokeTask               @zone-evergreen.js:483
ZoneTask.invoke          @zone-evergreen.js:472
timer                    @zone-evergreen.js:2538
setTimeout (async)      
scheduleTask             @zone-evergreen.js:2559
scheduleTask             @zone-evergreen.js:389
scheduleTask             @zone-evergreen.js:217
scheduleMacroTask        @zone-evergreen.js:240
scheduleMacroTaskWithCurrentZone           @zone-evergreen.js:675
(anonymous)              @zone-evergreen.js:2574
proto.<computed>         @zone-evergreen.js:971
AbstractXHRObject        @sockjs.js:1494
XHRLocalObject           @sockjs.js:2915
InfoAjax                 @sockjs.js:356
InfoReceiver._getReceiver  @sockjs.js:536
InfoReceiver.doXhr         @sockjs.js:556
(anonymous)              @sockjs.js:525
setTimeout (async)      
InfoReceiver             @sockjs.js:524
SockJS                   @sockjs.js:731
SockJSClient             @SockJSClient.js:43
initSocket               @socket.js:20
(anonymous)              @client:176
QM51                     @polyfills.js:13429
__webpack_require__      @bootstrap:84
1                        @object-set-prototype-of.js:24
__webpack_require__      @bootstrap:84
checkDeferredModules     @bootstrap:45
webpackJsonpCallback     @bootstrap:32
(anonymous)              @polyfills.js:1
@github-actions
Copy link

This issue has been inactive for 30 days. It will be in closed in 5 days without any new activity.

@erictor
Copy link
Author

erictor commented Jan 20, 2021

Webpack Live Reloading broke when I moved from .NET 3.1 to .NET 5.0.1 - Project debugging with VS 2019 16.8, using Angular 10

https://developercommunity2.visualstudio.com/t/webpack-live-reloading-broke-when-i-moved-from-net/1313178

EDIT: That issue was closed and GitHub Issue dotnet/aspnetcore#29478 was Opened in its place. It doesn't appear that anyone is looking into it though.

@erictor
Copy link
Author

erictor commented Jan 25, 2021

This is now under review by @captainsafia in dotnet/aspnetcore#29478.

@erictor
Copy link
Author

erictor commented Feb 13, 2021

Based on the fact that this error is under active review in dotnet/aspnetcore#29478 and no one appears to be looking at this here, I think I'll Close this.

@erictor erictor closed this as completed Feb 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant