Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

internal server error 500 #158

Open
Pasqat opened this issue May 5, 2022 · 2 comments
Open

internal server error 500 #158

Pasqat opened this issue May 5, 2022 · 2 comments

Comments

@Pasqat
Copy link

Pasqat commented May 5, 2022

With the last version whenever I try to fetch data 'as Preview' using the Authenticate: Bearer xxxx I got an internal server error from WordPress. I tried on a local server and on a live server.

The first time the setup of my Nextjs was that suggested on nextjs example and it didn't work. Then I follow the step suggested here, but it didn't work either, alas.

I've set the SetEnvInf on .htaccess.

I'm not sure if this is related but if I try this mutation

mutation refreshJwtAuthToken($input: RefreshJwtAuthTokenInput!) {
  refreshJwtAuthToken(input: $input) {
    authToken
  }
}

// variables
{
  "input": {
    "jwtRefreshToken": "my_refresh_token"
  }
}

I got this error

{
  "errors": [
    {
      "debugMessage": "Call to undefined function WPGraphQL\\JWT_Authentication\\codecept_debug()",
      "message": "Internal server error",
      "extensions": {
        "category": "internal"
      },
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "path": [
        "refreshJwtAuthToken"
      ]
    }
  ],
  "data": {
    "refreshJwtAuthToken": null
  },
 }

What information do I need to provide to help understand the problem?

@j-miguel
Copy link

I've also encountered this problem with the last version, #159 solved it for me.

@marziolek
Copy link

@Pasqat btw. how do you handle refreshJwtAuthToken mutation? ApolloClient onError?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants