• Resolved ashleynexvelsolutions

    (@ashleynexvelsolutions)


    When using this with Gatsby on two different sites I’m getting an internal server error. In WP Graphql I have Enable GraphQL Debug Mode enabled so on both sites in the graphiql ide when I do this query:
    query MyQuery {
    posts {
    nodes {
    seo {
    title
    }
    }
    }
    }
    I get this error: Argument 1 passed to WPGraphQL\\Data\\DataSource::resolve_post_object() must be of the type int, string given, called in (my site’s path)/wp-content/plugins/wp-graphql-yoast-seo-3.0.1/wp-graphql-yoast-seo.php on line 75.

    The error I see on https://localhost:8000/__graphql is:
    {
    “message”: “Internal server error”,
    “locations”: [
    {
    “line”: 5,
    “column”: 9
    }
    ],
    “path”: [
    “wpgraphql”,
    “posts”,
    “nodes”,
    0,
    “seo”
    ],
    “extensions”: {
    “category”: “internal”
    },
    “stack”: [
    “GraphQLError: Internal server error”,
    ” at Object.relocatedError (/Users/Ashley/Documents/mmk-gatsby/dist/utils/src/errors.js:4:12)”,
    ” at handleNull (/Users/Ashley/Documents/mmk-gatsby/node_modules/gatsby-source-graphql/dist/delegate/src/results/handleNull.js:11:43)”,
    ” at handleResult (/Users/Ashley/Documents/mmk-gatsby/node_modules/gatsby-source-graphql/dist/delegate/src/results/handleResult.js:8:16)”,
    ” at resolver (/Users/Ashley/Documents/mmk-gatsby/node_modules/gatsby-source-graphql/dist/delegate/src/defaultMergedResolver.js:24:12)”,
    ” at resolver (/Users/Ashley/Documents/mmk-gatsby/node_modules/gatsby/src/schema/resolvers.ts:518:14)”,
    ” at wrappedTracingResolver (/Users/Ashley/Documents/mmk-gatsby/node_modules/gatsby/src/schema/resolvers.ts:518:14)”,
    ” at resolveFieldValueOrError (/Users/Ashley/Documents/mmk-gatsby/node_modules/graphql/execution/execute.js:467:18)”,
    ” at resolveField (/Users/Ashley/Documents/mmk-gatsby/node_modules/graphql/execution/execute.js:434:16)”,
    ” at executeFields (/Users/Ashley/Documents/mmk-gatsby/node_modules/graphql/execution/execute.js:275:18)”,
    ” at collectAndExecuteSubfields (/Users/Ashley/Documents/mmk-gatsby/node_modules/graphql/execution/execute.js:713:10)”,
    ” at completeObjectValue (/Users/Ashley/Documents/mmk-gatsby/node_modules/graphql/execution/execute.js:703:10)”,
    ” at completeValue (/Users/Ashley/Documents/mmk-gatsby/node_modules/graphql/execution/execute.js:591:12)”,
    ” at completeValueCatchingError (/Users/Ashley/Documents/mmk-gatsby/node_modules/graphql/execution/execute.js:495:19)”,
    ” at /Users/Ashley/Documents/mmk-gatsby/node_modules/graphql/execution/execute.js:618:25″,
    ” at Array.forEach (<anonymous>)”,
    ” at forEach (/Users/Ashley/Documents/mmk-gatsby/node_modules/iterall/index.js:83:25)”
    ]
    }

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Internal Server Error’ is closed to new replies.