WordPress request with Application Passwords got invalid_username
I had created a password with Application Passwords,
But when I was trying to request WordPress API to create a post with Postman Basic Auth and also curl command, I got this error:
{
"code": "invalid_username",
"message": "<strong>Error</strong>: Unknown username. Check again or try your email address.",
"data": {
"status": 401
}
}
The reason why I got this error is because I used Application Password Name as username.
The correct way is using REAL username as username when requesting, not the Application Name.
Previous post: 如何在 Ubuntu 20.04 Focal Fossa Linux 桌面启动时禁用/启用 GUI
Next post: Copy and paste not working in VMWare Fusion