Cant validate migration lab

I tried validating older labs and it worked but this lab is stuck on the below code when I try to validate.

Last login: Tue Dec 17 11:45:04 on ttys000

ryancourtney@Ryans-MacBook-Air-8 ~ % cd desktop

ryancourtney@Ryans-MacBook-Air-8 desktop % cd mflix-js

ryancourtney@Ryans-MacBook-Air-8 mflix-js % npm test -t migration

server@1.0.0 test /Users/ryancourtney/Desktop/mflix-js

jest --passWithNoTests “migration”

Determining test suites to run… Setup Mongo Connection

RUNS test/ mi

test finally failed. Here is full terminal window:

ryancourtney@Ryans-MacBook-Air-8 mflix-js % npm test -t migration

server@1.0.0 test /Users/ryancourtney/Desktop/mflix-js
jest --passWithNoTests “migration”

Determining test suites to run…Setup Mongo Connection

RUNS test/migration.test.js
events.js:187
throw er; // Unhandled ‘error’ event
^

Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:201:27)
Emitted ‘error’ event on Connection instance at:
at TLSSocket. (/Users/ryancourtney/Desktop/mflix-js/node_modules/mongodb/lib/core/connection/connection.js:321:10)
at Object.onceWrapper (events.js:300:26)
at TLSSocket.emit (events.js:210:5)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
name: ‘MongoNetworkError’,
errorLabels: [ ‘TransientTransactionError’ ],
[Symbol(mongoErrorContextSymbol)]: {}
}
npm ERR! Test failed. See above for more details.
ryancourtney@Ryans-MacBook-Air-8 mflix-js %

The migration lab expired on me, and Im now having this same problem with connection pooling

Hi @Ryan_Courtney_8612,

Please share the full error when you run the test for connection pooling. Also, seems like you are having network issues. Make sure you are able to run the application.

Kanika

Im able to run the application and all of the tests before migration still work. I ran the connection pooling test like an hour ago and its still frozen on “RUNS test/connection-pooling.test.js”

ryancourtney@Ryans-MacBook-Air-8 mflix-js % npm test -t connection-pooling

server@1.0.0 test /Users/ryancourtney/Desktop/mflix-js
jest --passWithNoTests “connection-pooling”

Determining test suites to run…Setup Mongo Connection

RUNS test/connection-pooling.test.js
events.js:187
throw er; // Unhandled ‘error’ event
^

Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:201:27)
Emitted ‘error’ event on Connection instance at:
at TLSSocket. (/Users/ryancourtney/Desktop/mflix-js/node_modules/mongodb/lib/core/connection/connection.js:321:10)
at Object.onceWrapper (events.js:300:26)
at TLSSocket.emit (events.js:210:5)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
name: ‘MongoNetworkError’,
errorLabels: [ ‘TransientTransactionError’ ],
[Symbol(mongoErrorContextSymbol)]: {}
}
npm ERR! Test failed. See above for more details.
ryancourtney@Ryans-MacBook-Air-8 mflix-js %

This means it is having connection issues. Please share the changes you have done for the ticket.

Kanika

I did the connection pooling: {poolSize: 50}
and timeouts: {wtimeoutMS: 2500}

was able to get connection pooling answer, but not timeout

I am sorry but I am not able to understand this. This thread is becoming confusing, can you please create a new Topic, containing description like which ticket you are having issue. What is the error.

It would help a lot. :slight_smile:

Kanika