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

Connection problems #78

Open
SleeplessFox opened this issue Apr 11, 2017 · 1 comment
Open

Connection problems #78

SleeplessFox opened this issue Apr 11, 2017 · 1 comment

Comments

@SleeplessFox
Copy link

SleeplessFox commented Apr 11, 2017

Hi,
trying to connect with

var authConfig = require('./config/auth');

const tmdb = require('moviedb')(authConfig.tmdb.clientID, 'de');
tmdb.searchMovie({query:  'Alien'}, function(err, result) {
    if(err)
            throw (err);
    console.log(result);
});

I get a
"Error: getaddrinfo ENOTFOUND deauthentication deauthentication:80".

Any idea what the problem can be?

Thanks a lot.

@grantholle
Copy link
Contributor

The second parameter in the 'constructor' is an alternative endpoint. By default it's https://api.themoviedb.org/3/, but you're passing in de.

So it's trying to authenticate at deauthentication instead of https://api.themoviedb.org/3/authentication

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