Skip to content

Incorrect username #20

@atomicra1n

Description

@atomicra1n

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions