Almost first step on https://strapi.io/documentation/v3.x/plugins/graphql.html is failing with an error. I have confirmed the credentials are correct.
mutation {
login(input: { identifier: "redacted", password: "redacted" }) {
jwt
}
}
produces
{
"errors": [
{
"message": "Bad Request",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"login"
],
"extensions": {
"code": "INTERNAL_SERVER_ERROR",
"exception": {
"code": 400,
"data": {
"statusCode": 400,
"error": "Bad Request",
"message": [
{
"messages": [
{
"id": "Auth.form.error.invalid",
"message": "Identifier or password invalid."
}
]
}
],
"data": [
{
"messages": [
{
"id": "Auth.form.error.invalid",
"message": "Identifier or password invalid."
}
]
}
]
},
"stacktrace": [
"Error: Bad Request",
" at checkBadRequest (/srv/app/node_modules/strapi-plugin-users-permissions/config/schema.graphql.js:11:23)",
" at resolver (/srv/app/node_modules/strapi-plugin-users-permissions/config/schema.graphql.js:215:11)"
]
}
}
}
],
"data": null
}