Skip to content

[Bug]: Error: No suitable servers found (serverSelectionTryOnce set): [Failed to resolve 'mongodb_hostname'] #198

@cwilligv

Description

@cwilligv

Guidelines

  • I agree to follow this project's Contributing Guidelines.

Project Version

No response

Platform and OS Version

RStudio 2024.09.1, Windows 11

Existing Issues

No response

What happened?

I have created a cluster in Atlas cloud service and allowed network access to my IP, however, telemetry returns an error when being created:
Error: No suitable servers found (serverSelectionTryOnce set): [Failed to resolve 'mongodb_hostname']

Steps to reproduce

  1. Create DataStorage objects with mondoDB class (DataStorageMongoDB$new)
  2. Create telemetry object with mongodb datastorage connection.
  3. Error appears.
    ...

Expected behavior

Connection stablished with Mongodb storage.

Attachments

No response

Screenshots or Videos

No response

Additional Information

Mongodb is a cloud service, not a local database.
Network access has been granted for my IP. I've also tested with no IP restriction access.
I have tested the connection to my mongodb hostname with python from a notebook and it worked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions