Try to generate token throw GraphQL but get below error

{
  token(username: "[email protected]", password: "123456")
}

This is My qhaphQL query.
I am getting below error

{
  "errors": [
    {
      "debugMessage": "An exception occurred while executing 'DELETE FROM oegraphqltoken WHERE (OXUSERID = ?) AND (EXPIRES_AT <= NOW())' with params [\"b84d819c483496aec7452cfa5a4a3f16\"]:\n\nSQLSTATE[42S02]: Base table or view not found: 1146 Table 'oxid-graphql.oegraphqltoken' doesn't exist",
      "message": "Internal server error",
      "extensions": {
        "category": "internal"
      },
      "locations": [
        {
          "line": 3,
          "column": 3
        }
      ],
      "path": [
        "token"
      ]
    }
  ]
}

It sounds to me like you overlooked the migration step in the module installation.

First of thank you for your reply !!
I have already run migration with the below command
vendor/bin/oe-eshop-db_migrate migrations:migrate oe_graphql_storefront

but don’t know why somehow table is not generated so now I was created a manual the Table and now the token is generated successfully

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.