Random endpoint connection error
-
Hi,
I’m in a local dev environment with a WP installation in Local App and a fresh install Faust app following the instructions on https://faustjs.org/tutorial/get-started-with-faust. Now is working fine and I’m getting the content of header and footer menus but sometimes when I run dev command throw this error:
error - Unable to find a GraphQL endpoint at https://localhost:10008/index.php?graphql error - WPGraphQL may not be active, or your WordPress site is unavailable.
WP works fine at any moment and the GraphQL endpoint in both cases, when it works and when it doesn’t, throw the same json object:
{ "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." } ] } }
This is my .env content:
# Your WordPress site URL NEXT_PUBLIC_WORDPRESS_URL=https://localhost:10008 # Plugin secret found in WordPress Settings->Faust FAUST_SECRET_KEY=95001384-41f7-440b-bac5-f84674efe3e4
When error appears I change the WP url, run dev command, get the error again, get back the good one url again and the error disappear:
ready - started server on 0.0.0.0:3000, url: https://localhost:3000 info - Loaded env from /Volumes/Projects/test/faust-app/.env.local event - compiled client and server successfully in 479 ms (851 modules)
I know it is an odd issue hard to replicate, but I think you should know about it. Am I missing something?
I would like to use this stack in production, but I’m not sure with this odd error, can I?
Thanks so much anyway for your work, keep going! ??
- The topic ‘Random endpoint connection error’ is closed to new replies.