Valandur / Web-API

RESTful web server for Minecraft Sponge including an admin panel
https://valandur.github.io/Web-API/
MIT License
66 stars 17 forks source link

Cant login to panel #143

Open MarkDragon420 opened 3 years ago

MarkDragon420 commented 3 years ago

I set up the panel exactly as stated in the documentation and when I try to login it gives me an error "Login Error". In the console the error for when I try to login is

 [qtp54373215-309/WARN] [webapi]: Could not load asset: admin/Server IP*/api/v5/user/login

 [qtp54373215-309/INFO] [webapi]: ERROR: null

* - Censored server IP.

I have setup 2 users to test and neither works even after password changes. I enabled the whitelist and added my IP to it and it still doesn't work. I use HTTP to host the panel as HTTPS doesn't seem to load.

I also recieve this error when the server starts

[qtp54373215-160/WARN] [webapi]: Illegal character 0x16 in state=START for buffer HeapByteBuffer@68619ee3[p=1,l=513,c=8192,r=512]={\x16<<<\x03\x01\x01\xFc\x01\x00\x01\xF8\x03\x03~;\x9b#t\x84W...\x03\x00\x05\x00\x05\x01\x00\x00\x00\x00\x00\x0f\x00\x01\x01>>>\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00}

Versions:

    Minecraft: 1.12.2

    Web-API: 5.4.6-S7.2.0

    SpongeAPI: 7.3-7127e0882

    Sponge: 1.12.2-7.3.0

    SpongeForge: 1.12.2-2838-7.3.0

    Minecraft Forge: 14.23.5.2854

    JVM: 1.8.0_271/64-bit (Oracle Corporation)
Valandur commented 3 years ago

Hi, sorry for the late reply.

Could you post your security config file (replace the passwords with aaa or something)?

It sounds like something goes wrong when reading the config file, is it possible that you edited it with notepad on windows?