qlaffont / fortnite-api

Fortnite API, Get Stats, News And Status
https://twitter.com/qlaffont
MIT License
355 stars 86 forks source link

UnhandledPromiseRejectionWarning: #<Object> #181

Closed markito12 closed 5 years ago

markito12 commented 5 years ago

i dont know why it happends, i disabled 2fa and still.

let fortniteAPI = new Fortnite(
    [
        "mymail@gmail.com",
        "pass",
        "MzRhMDJjZjhmNDQxNGUyOWIxNTkyMTg3NmRhMzZmOWE6ZGFhZmJjY2M3Mzc3NDUwMzlkZmZlNTNkOTRmYzc2Y2Y=",
        "ZWM2ODRiOGM2ODdmNDc5ZmFkZWEzY2IyYWQ4M2Y1YzY6ZTFmMzFjMjExZjI4NDEzMTg2MjYyZDM3YTEzZmM4NGQ="
    ]
);

fortniteAPI.login().then(() => {

});

and the email and pass are from epic games launcher?

Lk2v commented 5 years ago

I have the same problem these tokens are no longer valid, otherwise yes it is necessary to put the identifier of the launcher

markito12 commented 5 years ago

yes, so frustrating

vanerac commented 5 years ago

try fortniteAPI.login().catch(e => {console.log(e)})