KiLMaN / T411-Torznab

A NodeJs proxy to download from T411 in Sonarr
26 stars 15 forks source link

Cannot call methode 'forEach' #1

Closed eyotiste closed 9 years ago

eyotiste commented 9 years ago

Hi, I got this error when trying to use your app

Server listening on port 9876 Got token : undefined { url: 'http://api.t411.io/torrents/search/?offset=0&limit=100', headers: { Authorization: undefined } } Exception : TypeError: Cannot call method 'forEach' of undefined

KiLMaN commented 9 years ago

Did you change your T411 Credentials inside the server.js file ?

Replace

var userName = "***";
var userPass = "***";

by your credentials

eyotiste commented 9 years ago

Oh, I'm stupid -_-

KiLMaN commented 9 years ago

I'v updated the server to separate the configuration file and exit if T411 doesn't give back the token (bad user/password) It's a little bit more foolproof ;)