Trying to use at deno deploy returns resolveDns error
See original GitHub issueI’m trying to deploy an app that uses oak and mongo using deno deploy.
The problem is that I’m getting this error when connecting:
Error: MongoError: "Connection failed: this.resolver.resolveDns is not a function"
at MongoClient.connect (https://deno.land/x/mongo@v0.25.0/src/client.ts:19:19)
I tried retrieving deno version from Deno.version but the deployment logs gives undefined.
Any idea? Thanks!
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Improve DNS.resolveDns() record types supported. #14492
Since Deno uses the trust-dns library to resolve DNS, we should make it support all record types that the library supports, eg.
Read more >Deno 1.7 Release Notes
This release adds a new Deno.resolveDns API. It can be used to query DNS records from a DNS resolver. At the moment only...
Read more >Deno.resolveDns | Runtime APIs
Performs DNS resolution against the given query, returning resolved records. Fails in the cases such as: - the query is in invalid format...
Read more >Deno.errors | Runtime APIs
A set of error constructors that are raised by Deno APIs. Can be used to provide more specific handling of failures within code...
Read more >Runtime APIs | Deno
Raised when trying to write to a resource and a broken pipe error occurs. ... Performs DNS resolution against the given query, returning...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@DanielRamosAcosta Your only option is using a http/rest wrapper server, like https://restheart.org/
You can use it now on Deno Deploy without unstable flag