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
api login issue
Moderator: mike
-
- Posts: 1
- Joined: Mon Jun 15, 2020 6:57 am
api login issue
Last edited by vizilipu on Wed May 18, 2022 9:35 am, edited 1 time in total.
-
- Posts: 5
- Joined: Mon Mar 02, 2020 12:52 pm
Re: api login issue
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:
You need to replace 1.1.1.1 by the IP address of your server.
Cheers,
Guillaume
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
Cheers,
Guillaume
-
- Posts: 1
- Joined: Sat Jul 18, 2020 8:36 am
Re: api login issue
someone wrote here that its work only for linux or wsl but not for windows
-
- Posts: 13
- Joined: Sun Sep 24, 2017 8:47 pm
- Location: Sevilla
Re: api login issue
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)."
}
{
"code": 400,
"status": "fail",
"message": "Username not set (90011)."
}