Skip to content
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

Error on server start due to the binaryheap package #51

Closed
brnrd opened this issue May 11, 2013 · 1 comment
Closed

Error on server start due to the binaryheap package #51

brnrd opened this issue May 11, 2013 · 1 comment

Comments

@brnrd
Copy link

brnrd commented May 11, 2013

I need to do a custom resolve, so I do the following code in a class :

dns = require 'native-dns'
(...)

     @resolve = (url, server, ip) ->
        question = dns.Question({
            name: url,
            type: 'A'})
        start = Data.now()
        req = dns.Request({
            question: question,
            server: {address: server}
            })
        req.on('timeout', () ->
            console.log 'Timeout')
        req.on('message', (err, answer) ->
            console.log answer
            answer.answer.forEach(a) ->
                console.log a.address
        )
        req.on('end', () ->
            delta = Date.now() - start
            console.log 'Finished processing request: ' + delta.toString() + 'ms'
        )
        req.send()

But on start, the server raise this error :

/node_modules/native-dns/node_modules/binaryheap/binaryheap.js:68
if (!insert._left)
           ^
TypeError: Cannot read property '_left' of null
at [object Object].Heap.insert

I've seen the issue #33 but the .platform.cache = false but it doesn't change anything to the problem.

Am I doing something wrong or does the Binaryheap package needs a fix ?

Thanks !

Update : I only get this problem under Ubuntu 13.04. It works fine under Windows 7.
Update 2 : I also get this problem with my app on Heroku. As working under Windows 7 is not that much of a problem, Heroku is a bigger problem.
Update 3 : The problem happens also with AppFog and Nodejitsu. I really hope you can fix this problem.

@vonbarnekowa
Copy link

vonbarnekowa commented Nov 9, 2016

I have this issue with Ubuntu 16.10 and 16.04.1 :'(
Node : v6.9.1
Native-dns : v0.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants