question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Connection timeout

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
marcuspoehlscommented, Jul 13, 2022

@aprilahijriyan Hey Aprila, great! Good to know the missing auth source was the issue 👍 thank you for sharing your solution 😃

0reactions
aprilahijriyancommented, Jul 13, 2022

@marcuspoehls I think you should add ‘general troubleshooting’ in README. I just realized you have mentioned authSource in the commit message. https://github.com/supercharge/mongodb-github-action/commit/ea1a7f385262c1fc4bf653e4ac5822e2f57d44ab

Read more comments on GitHub >

github_iconTop Results From Across the Web

What Does a Server Connection Timeout Mean?
A server connection timeout means that a server is taking too long to reply to a data request made from another device. Timeouts...
Read more >
What is a connection timeout during a http request
Connection timeout is a common error that occurs whenever the client is waiting for too long before getting a response from any server...
Read more >
Connection Timeout vs. Read Timeout for Java Sockets
Sometimes, firewalls block certain ports due to security reasons. As a result, a “connection timed out” error can occur when a client is...
Read more >
11 Ways to Fix the ERR_CONNECTION_TIMED_OUT Error
The connection timed out error isn't a dangerous error, nor is it an infected file that can harm your computer.
Read more >
How to Fix the ERR_CONNECTION_TIMED_OUT Error - Kinsta
According to the WordPress support documentation, a connection timed out error appears when your website is trying to do more than your ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found