EdupageAPI icon indicating copy to clipboard operation
EdupageAPI copied to clipboard

Incorrect username

Open atomicra1n opened this issue 3 years ago • 0 comments

Hi, I'm trying to login to Edupage using edupage API, and it works, on my machine.

        var user = await edupage.login(process.env.USER, decryptedpass, {edupage: process.env.SCHOOL}).catch((err) => {
            console.log('-----EDUPAGE LOGIN FAILED-----');
            console.log(err)
         });

        if (typeof user == 'object') {
            sentembed3.delete();
            console.log('-----EDUPAGE LOGIN OK-----');
            await origmsg.channel.send({
                embeds: [embed4]
            });
            isInitialized = true;


            return edupage;
        } else { 
            sentembed3.delete();
            emergency.emergency(origmsg, bot);
            await origmsg.channel.send({
                embeds: [embed6]
            });
            return false;
        }

It logs in just fine on my PC, but on my server running Linux, it is unable to, and it says: Failed to login: Incorrect username. (If you are sure that the username is correct, try providing the 'edupage' option)

Any ideas? Thanks.

atomicra1n avatar Oct 30 '22 11:10 atomicra1n