Skip to content

Fetching data via tinker  #2697

Open
Open
@ivankrister

Description

@ivankrister
  • Laravel-mongodb Version: 4.1.0
  • PHP Version: 8.2.12
  • Database Driver & Version: Atlas Mongo DB Serverless V2 Version 7.1.1

Description:

Steps to reproduce

  1. Install mongo db version 4.1.0 in laravel 10.37.3
  2. Set up using DB_DSN
  3. Fetch any data using model in tinker

Expected behaviour

Display the collection on the specific model that call

Actual behaviour

Error
MongoDB\Driver\Exception\InvalidArgumentException Failed to parse URI options: Failed to look up SRV record "_mongodb._tcp.XXXX.XXX.mongodb.net": A temporary error occurred on an authoritative name server. Try again later.

BUT everything fine when calling in routes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions