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.

Trying to use at deno deploy returns resolveDns error

See original GitHub issue

I’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:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
erfaniumcommented, Aug 26, 2021

@DanielRamosAcosta Your only option is using a http/rest wrapper server, like https://restheart.org/

0reactions
erfaniumcommented, Oct 22, 2021

You can use it now on Deno Deploy without unstable flag

Read more comments on GitHub >

github_iconTop 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 >

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