-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fetching data via tinker #2697
Comments
Hi @ivankrister, does the error persist or does it eventually go away? By default, MongoDB Atlas uses the |
Yes, @alcaeus i confirm that im using same connection in my web and tinker im using mongodb+srv protocol in my connection and i call config('database.connections.mongodb') in my tinker and web it gives similar result, but error still exists in tinker when fetching data |
For me its the other way around, From tinker It works, but calling from routes it throws the below error. No suitable servers found ( @ivankrister is the issue fixed? |
@lokesh-zersys the error you are receiving is likely unrelated and has a very different root cause. I've also noted that you're using DocumentDB, so please contact AWS support for any issues you encounter as it's not supported by the MongoDB driver. Thanks. |
Description:
Steps to reproduce
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
The text was updated successfully, but these errors were encountered: