• Resolved Alberto Garcia

    (@albertokatiuskas)


    Hi, I’m followed the instructions on Faust website and I’ve got the same error with a local WP with Local App and with a remote server, both fresh installations. And a fresh installation of Faust. The npm run generate or dev crash with this error:

    error - Unable to find a GraphQL endpoint at https://localhost:10003/index.php?graphql
    error - WPGraphQL may not be active, or your WordPress site is unavailable.

    The content of the endpoint is:

    {
      "errors": [
        {
          "message": "GraphQL Request must include at least one of those two parameters: \"query\" or \"queryId\"",
          "extensions": {
            "category": "request"
          }
        }
      ],
      "extensions": {
        "debug": [
          {
            "type": "DEBUG_LOGS_INACTIVE",
            "message": "GraphQL Debug logging is not active. To see debug logs, GRAPHQL_DEBUG must be enabled."
          }
        ]
      }
    }

    I’m pointing Front-end site URL to https://localhost:3000 and the NEXT_PUBLIC_WORDPRESS_URL to https://localhost:10003, which is the Local App url.

    I’m not edited any code in the Faust project, and saw the video with Jason Lengstorf, repeating the steps once again. How can query or queryId be missing? Am I missing something?

    Thanks a lot in advance.

Viewing 1 replies (of 1 total)
  • Thread Starter Alberto Garcia

    (@albertokatiuskas)

    Me again. Sorry, misconfiguration of CORS in WP remote server. I’m still don’t know why Faust with a local server doesn’t work anyway in this case. I’ve changed to a custom Next/Apollo stack and works fine.

    Thanks for your work anyway.

Viewing 1 replies (of 1 total)
  • The topic ‘Unable to find a GraphQL endpoint’ is closed to new replies.