Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Error message for mutation generateCustomerToken #628

Closed
TomashKhamlai opened this issue Apr 24, 2019 · 1 comment
Closed

Error message for mutation generateCustomerToken #628

TomashKhamlai opened this issue Apr 24, 2019 · 1 comment
Assignees
Labels
bug Something isn't working Component: CustomerGraphQl Contribution Day Tickets is good for start on Contribution Day good first issue Good for newcomers

Comments

@TomashKhamlai
Copy link
Contributor

TomashKhamlai commented Apr 24, 2019

Preconditions (*)

  1. No preconditions.

Steps to reproduce (*)

  1. Execute
    query:
mutation generateCustomerToken(
  $email: String!
  $password: String!
) {
  generateCustomerToken(
    email: $email
    password: $password
  ) {
    token
  }
}

variables:

    {
        "email": "",
        "password": ""
    }

Expected result (*)

  1. "message": ""username" is required. Enter and try again."
  2. "message": ""password" is required. Enter and try again."

Actual result (*)

{
  "errors": [
    {
      "debugMessage": "One or more input exceptions have occurred.",
      "message": "Internal server error",
      "category": "internal",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "path": [
        "generateCustomerToken"
      ]
    }
  ],
  "data": {
    "generateCustomerToken": null
  }
}

Case should be covered with API-functional tests

@naydav naydav added Contribution Day Tickets is good for start on Contribution Day good first issue Good for newcomers labels Apr 24, 2019
@osrecio osrecio self-assigned this Apr 29, 2019
osrecio added a commit to osrecio/graphql-ce that referenced this issue Apr 29, 2019
magento-engcom-team added a commit that referenced this issue May 2, 2019
…merToken) #636

 - Merge Pull Request #636 from osrecio/graphql-ce:PR#GenerateCustomerToken
 - Merged commits:
   1. 33c322b
@naydav naydav added this to the Release: 2.3.2 milestone May 2, 2019
@naydav
Copy link
Contributor

naydav commented May 2, 2019

#636

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working Component: CustomerGraphQl Contribution Day Tickets is good for start on Contribution Day good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants