dotnet / dotnet/aspnetcore

Quarantine SignalR functional test "closed with error or start fails if hub cannot be created"

Open
#44,608 1 comment 0 reactions 1 assignee Claimed by @BrennanConroy View on GitHub
area-signalr test-failure
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

## Failing Test(s)

https://github.com/dotnet/aspnetcore/blob/274c32e63a9df1979175c4e7c9adffdabc182e96/src/SignalR/clients/ts/FunctionalTests/ts/HubConnectionTests.ts#L362

## Error Message

```text
: Timeout - Async callback was not invoked within the 40000 ms timeout specified by jest.setTimeout.Timeout - Async callback was not invoked within the 40000 ms timeout specified by jest.setTimeout.Error:
```

## Stacktrace

```text
at new Spec (D:\a\_work\1\s\src\SignalR\clients\ts\common\node_modules\jest-jasmine2\build\jasmine\Spec.js:116:22)
at new Spec (D:\a\_work\1\s\src\SignalR\clients\ts\common\node_modules\jest-jasmine2\build\setup_jest_globals.js:78:9)
at specFactory (D:\a\_work\1\s\src\SignalR\clients\ts\common\node_modules\jest-jasmine2\build\jasmine\Env.js:523:24)
at Env.it (D:\a\_work\1\s\src\SignalR\clients\ts\common\node_modules\jest-jasmine2\build\jasmine\Env.js:592:24)
at Env.it (D:\a\_work\1\s\src\SignalR\clients\ts\common\node_modules\jest-jasmine2\build\jasmineAsyncInstall.js:134:23)
at it (D:\a\_work\1\s\src\SignalR\clients\ts\common\node_modules\jest-jasmine2\build\jasmine\jasmineLight.js:100:21)
at Suite. (D:\a\_work\1\s\src\SignalR\clients\ts\FunctionalTests\ts\HubConnectionTests.ts:362:13)
at addSpecsToSuite (D:\a\_work\1\s\src\SignalR\clients\ts\common\node_modules\jest-jasmine2\build\jasmine\Env.js:444:51)
at Env.describe (D:\a\_work\1\s\src\SignalR\clients\ts\common\node_modules\jest-jasmine2\build\jasmine\Env.js:414:11)
at describe (D:\a\_work\1\s\src\SignalR\clients\ts\common\node_modules\jest-jasmine2\build\jasmine\jasmineLight.js:88:18)
```

## Logs

```
console.log
*** SPEC STARTED: hubConnection using json over WebSockets transport closed with error or start fails if hub cannot be created [2022-10-14T21:42:16.288Z] ***

at LogBannerReporter.specStarted (ts/LogBannerReporter.ts:15:17)

console.log
[2022-10-14T21:42:16.289Z] Debug: Starting HubConnection.

at ConsoleLogger.log (../signalr/dist/esm/Utils.js:151:30)

console.log
[2022-10-14T21:42:16.289Z] Debug: Starting connection with transfer format 'Text'.

at ConsoleLogger.log (../signalr/dist/esm/Utils.js:151:30)

console.log
[2022-10-14T21:42:16.290Z] Debug: Sending negotiation request: http://127.0.0.1:35035/uncreatable/negotiate?negotiateVersion=1.

at ConsoleLogger.log (../signalr/dist/esm/Utils.js:151:30)

console.log
[2022-10-14T21:42:16.293Z] Debug: Selecting transport 'WebSockets'.

at ConsoleLogger.log (../signalr/dist/esm/Utils.js:151:30)

console.log
[2022-10-14T21:42:16.294Z] Trace: (WebSockets transport) Connecting.

at ConsoleLogger.log (../signalr/dist/esm/Utils.js:151:30)

console.info
[2022-10-14T21:42:16.297Z] Information: WebSocket connected to ws://127.0.0.1:35035/uncreatable?id=4Z5UzIrkXRVaOuaQIpX-tA.

at ConsoleLogger.log (../signalr/dist/esm/Utils.js:147:30)

console.log
[2022-10-14T21:42:16.297Z] Debug: The HttpConnection connected successfully.

at ConsoleLogger.log (../signalr/dist/esm/Utils.js:151:30)

console.log
[2022-10-14T21:42:16.298Z] Debug: Sending handshake request.

at ConsoleLogger.log (../signalr/dist/esm/Utils.js:151:30)

console.log
[2022-10-14T21:42:16.298Z] Trace: (WebSockets transport) sending data. String data of length 32. Content: '{"protocol":"json","version":1}'.

at ConsoleLogger.log (../signalr/dist/esm/Utils.js:151:30)

console.info
[2022-10-14T21:42:16.298Z] Information: Using HubProtocol 'json'.

at ConsoleLogger.log (../signalr/dist/esm/Utils.js:147:30)

console.log
[2022-10-14T21:42:16.304Z] Trace: (WebSockets transport) data received. String data of length 3. Content: '{}'.

at ConsoleLogger.log (../signalr/dist/esm/Utils.js:151:30)

console.log
[2022-10-14T21:42:16.304Z] Debug: Server handshake complete.

at ConsoleLogger.log (../signalr/dist/esm/Utils.js:151:30)

console.log
[2022-10-14T21:42:16.304Z] Trace: (WebSockets transport) sending data. String data of length 11. Content: '{"type":6}'.

at ConsoleLogger.log (../signalr/dist/esm/Utils.js:151:30)

console.log
[2022-10-14T21:42:16.304Z] Debug: HubConnection connected successfully.

at ConsoleLogger.log (../signalr/dist/esm/Utils.js:151:30)

console.log
[2022-10-14T21:42:16.307Z] Trace: (WebSockets transport) socket closed.

at ConsoleLogger.log (../signalr/dist/esm/Utils.js:151:30)

console.log
[2022-10-14T21:42:16.307Z] Debug: HttpConnection.stopConnection(undefined) called while in state Connected.

at ConsoleLogger.log (../signalr/dist/esm/Utils.js:151:30)

console.info
[2022-10-14T21:42:16.307Z] Information: Connection disconnected.

at ConsoleLogger.log (../signalr/dist/esm/Utils.js:147:30)

console.log
[2022-10-14T21:42:16.307Z] Debug: HubConnection.connectionClosed(undefined) called while in state Connected.

at ConsoleLogger.log (../signalr/dist/esm/Utils.js:151:30)

console.error
[2022-10-14T21:42:16.308Z] Error: An onclose callback called with error 'undefined' threw error 'TypeError: Cannot read properties of undefined (reading 'message')'.

139 | case LogLevel.Critical:
140 | case LogLevel.Error:
> 141 | this.out.error(msg);
| ^
142 | break;
143 | case LogLevel.Warning:
144 | this.out.warn(msg);

at ConsoleLogger.log (../signalr/dist/esm/Utils.js:141:30)
at TestLogger.log (ts/TestLogger.ts:44:35)
at HubConnection._completeClose (../signalr/dist/cjs/HubConnection.js:624:30)
at HubConnection._connectionClosed (../signalr/dist/cjs/HubConnection.js:605:18)
at HttpConnection.HubConnection.connection.onclose (../signalr/dist/cjs/HubConnection.js:46:51)
at HttpConnection._stopConnection (../signalr/dist/cjs/HttpConnection.js:416:26)
at WebSocketTransport.transport.onclose (../signalr/dist/cjs/HttpConnection.js:337:46)
at WebSocketTransport._close (../signalr/dist/cjs/WebSocketTransport.js:150:22)

console.log
*** SPEC DONE: hubConnection using json over WebSockets transport closed with error or start fails if hub cannot be created [2022-10-14T21:42:56.292Z; Duration: 40004ms] ***

at LogBannerReporter.specDone (ts/LogBannerReporter.ts:22:17)
```

## Build

[Example 1](https://dev.azure.com/dnceng-public/public/_build/results?buildId=53219&view=ms.vss-test-web.build-test-results-tab&runId=1087558&resultId=100027&paneView=debug)
[Example 2](https://dev.azure.com/dnceng-public/public/_build/results?buildId=54980&view=ms.vss-test-web.build-test-results-tab&runId=1128610&resultId=100608&paneView=debug)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.