api login issue

Before posting something, READ the changelog, WATCH the videos, howto and provide following:
Your install is: Bare metal, ESXi, what CPU model, RAM, HD, what EVE version you have, output of the uname -a and any other info that might help us faster.

Moderator: mike

Post Reply
vizilipu
Posts: 1
Joined: Mon Jun 15, 2020 6:57 am

api login issue

Post by vizilipu » Mon Jun 15, 2020 6:59 am

I am trying to login using the API but I keep getting this error message

{"code":400,"status":"fail","message":"Username not set (90011)."}


The command I am using:

curl -c cookie -b cookie -X POST -H "Content-type: application/json" -d '{"username":"admin","password":"unl"}'v

share my favorite adult xxx sites
https://freeporn.ooo
https://camjke.com
https://pornsites.pro
Last edited by vizilipu on Wed May 18, 2022 9:35 am, edited 1 time in total.

guillaume.vilar
Posts: 5
Joined: Mon Mar 02, 2020 12:52 pm

Re: api login issue

Post by guillaume.vilar » Mon Jun 15, 2020 7:23 am

Hi,

I tested your command and it works on my eve-ng node so I guess it is not a syntax error.

--> Are you able to login to the web interface using that username/password?
If not, you need to create that credentials, or change the default password for the 'admin' username, which is 'eve'.

--> What is the path you are using?
In my case I was using the following path (/api/auth/login). This is the full command I was using:

Code: Select all

curl -c cookie -b cookie -X POST -H "Content-type: application/json" -d '{"username":"admin","password":"unl"}' http://1.1.1.1/api/auth/login 
You need to replace 1.1.1.1 by the IP address of your server.

Cheers,

Guillaume

fomka31ru
Posts: 1
Joined: Sat Jul 18, 2020 8:36 am

Re: api login issue

Post by fomka31ru » Sat Jul 18, 2020 9:21 am

someone wrote here that its work only for linux or wsl but not for windows

cbarbudo
Posts: 13
Joined: Sun Sep 24, 2017 8:47 pm
Location: Sevilla

Re: api login issue

Post by cbarbudo » Wed Feb 03, 2021 5:58 pm

I tried to test API using Postman in Windows trying to POST same data, but no results. Did somebody tested with Postman?

{
"code": 400,
"status": "fail",
"message": "Username not set (90011)."
}

Post Reply