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

Incorrect username #20

Open
checkm4te8 opened this issue Oct 30, 2022 · 0 comments
Open

Incorrect username #20

checkm4te8 opened this issue Oct 30, 2022 · 0 comments

Comments

@checkm4te8
Copy link

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.

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

1 participant