Untitled

 avatar
unknown
plain_text
a year ago
10 kB
8
Indexable
PS D:\P PNP\KULIAH\Muhammad Fadhel\TA\absensi cybertech\new backend\cybertech> npm run start

> backend@1.0.0 start
> node index.js

(node:12424) [MONGODB DRIVER] Warning: useNewUrlParser is a deprecated option: useNewUrlParser has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version
(Use `node --trace-warnings ...` to show where the warning was created)
(node:12424) [MONGODB DRIVER] Warning: useUnifiedTopology is a deprecated option: useUnifiedTopology has no effect since Node.js Driver version 4.0.0 and will be removed in the next major version
Server is running on port 3000
MongoDB connection error: MongoServerSelectionError: B80A0000:error:0A000438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:c:\ws\deps\openssl\openssl\ssl\record\rec_layer_s3.c:1605:SSL alert number 80

    at EventTarget.<anonymous> (D:\P PNP\KULIAH\Muhammad Fadhel\TA\absensi cybertech\new backend\cybertech\node_modules\mongodb\lib\sdam\topology.js:276:34)
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:737:20)
    at EventTarget.dispatchEvent (node:internal/event_target:679:26)
    at abortSignal (node:internal/abort_controller:314:10)
    at TimeoutController.abort (node:internal/abort_controller:344:5)
    at Timeout.<anonymous> (D:\P PNP\KULIAH\Muhammad Fadhel\TA\absensi cybertech\new backend\cybertech\node_modules\mongodb\lib\utils.js:1010:92)     
    at listOnTimeout (node:internal/timers:569:17)
    at process.processTimers (node:internal/timers:512:7) {
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'ac-gka8yby-shard-00-00.tqkgoew.mongodb.net:27017' => [ServerDescription],
      'ac-gka8yby-shard-00-01.tqkgoew.mongodb.net:27017' => [ServerDescription],
      'ac-gka8yby-shard-00-02.tqkgoew.mongodb.net:27017' => [ServerDescription]
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-f18qpy-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined,
  [Symbol(errorLabels)]: Set(0) {},
  [cause]: MongoNetworkError: B80A0000:error:0A000438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:c:\ws\deps\openssl\openssl\ssl\record\rec_layer_s3.c:1605:SSL alert number 80

      at connectionFailureError (D:\P PNP\KULIAH\Muhammad Fadhel\TA\absensi cybertech\new backend\cybertech\node_modules\mongodb\lib\cmap\connect.js:379:20)
      at TLSSocket.<anonymous> (D:\P PNP\KULIAH\Muhammad Fadhel\TA\absensi cybertech\new backend\cybertech\node_modules\mongodb\lib\cmap\connect.js:285:22)
      at Object.onceWrapper (node:events:628:26)
      at TLSSocket.emit (node:events:513:28)
      at emitErrorNT (node:internal/streams/destroy:151:8)
      at emitErrorCloseNT (node:internal/streams/destroy:116:3)
      at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
    [Symbol(errorLabels)]: Set(1) { 'ResetPool' },
    [cause]: [Error: B80A0000:error:0A000438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:c:\ws\deps\openssl\openssl\ssl\record\rec_layer_s3.c:1605:SSL alert number 80
    ] {
      library: 'SSL routines',
      reason: 'tlsv1 alert internal error',
      code: 'ERR_SSL_TLSV1_ALERT_INTERNAL_ERROR'
    }
  }
}
D:\P PNP\KULIAH\Muhammad Fadhel\TA\absensi cybertech\new backend\cybertech\node_modules\mongoose\lib\connection.js:809
    err = new ServerSelectionError();
          ^

MongooseServerSelectionError: Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted. Make sure your current IP address is on your Atlas cluster's IP whitelist: https://www.mongodb.com/docs/atlas/security-whitelist/
    at _handleConnectionErrors (D:\P PNP\KULIAH\Muhammad Fadhel\TA\absensi cybertech\new backend\cybertech\node_modules\mongoose\lib\connection.js:809:11)
    at NativeConnection.openUri (D:\P PNP\KULIAH\Muhammad Fadhel\TA\absensi cybertech\new backend\cybertech\node_modules\mongoose\lib\connection.js:784:11) {
  reason: TopologyDescription {
    type: 'ReplicaSetNoPrimary',
    servers: Map(3) {
      'ac-gka8yby-shard-00-00.tqkgoew.mongodb.net:27017' => ServerDescription {
        address: 'ac-gka8yby-shard-00-00.tqkgoew.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        lastUpdateTime: 997054590,
        lastWriteDate: 0,
        error: MongoNetworkError: B80A0000:error:0A000438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:c:\ws\deps\openssl\openssl\ssl\record\rec_layer_s3.c:1605:SSL alert number 80

            at connectionFailureError (D:\P PNP\KULIAH\Muhammad Fadhel\TA\absensi cybertech\new backend\cybertech\node_modules\mongodb\lib\cmap\connect.js:379:20)
            at TLSSocket.<anonymous> (D:\P PNP\KULIAH\Muhammad Fadhel\TA\absensi cybertech\new backend\cybertech\node_modules\mongodb\lib\cmap\connect.js:285:22)
            at Object.onceWrapper (node:events:628:26)
            at TLSSocket.emit (node:events:513:28)
            at emitErrorNT (node:internal/streams/destroy:151:8)
            at emitErrorCloseNT (node:internal/streams/destroy:116:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
          [Symbol(errorLabels)]: Set(1) { 'ResetPool' },
          [cause]: [Error: B80A0000:error:0A000438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:c:\ws\deps\openssl\openssl\ssl\record\rec_layer_s3.c:1605:SSL alert number 80
          ] {
            library: 'SSL routines',
            reason: 'tlsv1 alert internal error',
            code: 'ERR_SSL_TLSV1_ALERT_INTERNAL_ERROR'
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        primary: null,
        me: null,
        '$clusterTime': null
      },
      'ac-gka8yby-shard-00-01.tqkgoew.mongodb.net:27017' => ServerDescription {
        address: 'ac-gka8yby-shard-00-01.tqkgoew.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        lastUpdateTime: 997054288,
        lastWriteDate: 0,
        error: MongoNetworkError: B80A0000:error:0A000438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:c:\ws\deps\openssl\openssl\ssl\record\rec_layer_s3.c:1605:SSL alert number 80

            at connectionFailureError (D:\P PNP\KULIAH\Muhammad Fadhel\TA\absensi cybertech\new backend\cybertech\node_modules\mongodb\lib\cmap\connect.js:379:20)
            at TLSSocket.<anonymous> (D:\P PNP\KULIAH\Muhammad Fadhel\TA\absensi cybertech\new backend\cybertech\node_modules\mongodb\lib\cmap\connect.js:285:22)
            at Object.onceWrapper (node:events:628:26)
            at TLSSocket.emit (node:events:513:28)
            at emitErrorNT (node:internal/streams/destroy:151:8)
            at emitErrorCloseNT (node:internal/streams/destroy:116:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
          [Symbol(errorLabels)]: Set(1) { 'ResetPool' },
          [cause]: [Error: B80A0000:error:0A000438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:c:\ws\deps\openssl\openssl\ssl\record\rec_layer_s3.c:1605:SSL alert number 80
          ] {
            library: 'SSL routines',
            reason: 'tlsv1 alert internal error',
            code: 'ERR_SSL_TLSV1_ALERT_INTERNAL_ERROR'
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        primary: null,
        me: null,
        '$clusterTime': null
      },
      'ac-gka8yby-shard-00-02.tqkgoew.mongodb.net:27017' => ServerDescription {
        address: 'ac-gka8yby-shard-00-02.tqkgoew.mongodb.net:27017',
        type: 'Unknown',
        hosts: [],
        passives: [],
        arbiters: [],
        tags: {},
        minWireVersion: 0,
        maxWireVersion: 0,
        roundTripTime: -1,
        lastUpdateTime: 997054583,
        lastWriteDate: 0,
        error: MongoNetworkError: B80A0000:error:0A000438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:c:\ws\deps\openssl\openssl\ssl\record\rec_layer_s3.c:1605:SSL alert number 80

            at connectionFailureError (D:\P PNP\KULIAH\Muhammad Fadhel\TA\absensi cybertech\new backend\cybertech\node_modules\mongodb\lib\cmap\connect.js:379:20)
            at TLSSocket.<anonymous> (D:\P PNP\KULIAH\Muhammad Fadhel\TA\absensi cybertech\new backend\cybertech\node_modules\mongodb\lib\cmap\connect.js:285:22)
            at Object.onceWrapper (node:events:628:26)
            at TLSSocket.emit (node:events:513:28)
            at emitErrorNT (node:internal/streams/destroy:151:8)
            at emitErrorCloseNT (node:internal/streams/destroy:116:3)
            at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
          [Symbol(errorLabels)]: Set(1) { 'ResetPool' },
          [cause]: [Error: B80A0000:error:0A000438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:c:\ws\deps\openssl\openssl\ssl\record\rec_layer_s3.c:1605:SSL alert number 80
          ] {
            library: 'SSL routines',
            reason: 'tlsv1 alert internal error',
            code: 'ERR_SSL_TLSV1_ALERT_INTERNAL_ERROR'
          }
        },
        topologyVersion: null,
        setName: null,
        setVersion: null,
        electionId: null,
        logicalSessionTimeoutMinutes: null,
        primary: null,
        me: null,
        '$clusterTime': null
      }
    },
    stale: false,
    compatible: true,
    heartbeatFrequencyMS: 10000,
    localThresholdMS: 15,
    setName: 'atlas-f18qpy-shard-0',
    maxElectionId: null,
    maxSetVersion: null,
    commonWireVersion: 0,
    logicalSessionTimeoutMinutes: null
  },
  code: undefined
}

Node.js v18.16.0
Editor is loading...
Leave a Comment