observing / fullcontact

FullContact API bindings for Node.js
MIT License
42 stars 18 forks source link

Certain emails just spin and nothing is ever returned #5

Closed toymachiner62 closed 9 years ago

toymachiner62 commented 9 years ago

I'm playing around with this library and I have this code snippet and if i use the name "jeff@gmail.com" it returns data fast and if i use the name "dick@gmail.com" it just spins and never returns (at least not in 4 minutes).

fullcontact.person.email('jeff@gmail.com', function(err, fcData) {

    if(err) {
        return Boom.badRequest(err);
    }

        // NEVER GETS HERE WITH "dick@gmail.com"
    console.log(fcData);
})

Any ideas on this?

3rd-Eden commented 9 years ago

I don't know to be honest. But it might make sense to set a timeout on each request so at least the callbacks will be called.

AdriVanHoudt commented 9 years ago

@toymachiner62 is it possible fullcontact is searching for results because it doesn't know that email yet? try using the webhooks instead

toymachiner62 commented 9 years ago

It's been a while since i looked at this so i don't believe so. If it doesn't know the email it should return either no data or the err var should contain a message that there is no data. It should never just not return.

AdriVanHoudt commented 9 years ago

true, normally fullcontact will always return see