mongodb-github-action: Connection timeout
I’ve trying to use this action, but my application are not connecting on mongo db, Im receving a timeout error.
| MongoServerSelectionError: connection timed out
| at Timeout._onTimeout (/home/jorge/Projetos/gira-serve/node_modules/parse-server/node_modules/mongodb/lib/core/sdam/topology.js:437:30)
| at listOnTimeout (internal/timers.js:557:17)
| at processTimers (internal/timers.js:500:7) {
| reason: TopologyDescription {
| type: 'Single',
| setName: null,
| maxSetVersion: null,
| maxElectionId: null,
| servers: Map(1) { '127.0.0.1:27017' => [ServerDescription] },
| stale: false,
| compatible: true,
| compatibilityError: null,
| logicalSessionTimeoutMinutes: null,
| heartbeatFrequencyMS: 10000,
| localThresholdMS: 15,
| commonWireVersion: null
| }
| }
integration-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
mongodb-version: ['4.4']
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14
uses: actions/setup-node@v2
with:
node-version: 14
- name: Start MongoDB
uses: supercharge/mongodb-github-action@1.7.0
with:
mongodb-version: 4.4
mongodb-db: test-database
- run: npm install -g yarn
- run: yarn install
- run: yarn test:integration
env:
NODE_ENV: test
PARSE_SERVER_DATABASE_URI: mongodb://127.0.0.1:27017/test-database?directConnection=true
DATABASE_NAME: test-database
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (7 by maintainers)
@aprilahijriyan Hey Aprila, great! Good to know the missing auth source was the issue 👍 thank you for sharing your solution 😃