You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 20, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 20, 2021. It is now read-only.
Build failure: "Sorry, you do not have permission to view this setting." allSettings.generalSettingsEmail, generalSettings.email #139
success gatsby-source-wordpress MediaItem - 123.668s - fetched 105
success gatsby-source-wordpress creating nodes - 123.720s
success gatsby-source-wordpress fetching nodes - 150.355s - 291 total
ERROR
gatsby-source-wordpress (undefined) location: line 9, column: 5
Sorry, you do not have permission to view this setting.
Error path: allSettings.generalSettingsEmail
If you haven't already, try adding define( 'GRAPHQL_DEBUG', true ); to your wp-config.php for more detailed error messages.
ERROR
gatsby-source-wordpress (undefined) location: line 34, column: 5
Sorry, you do not have permission to view this setting.
Error path: generalSettings.email
If you haven't already, try adding define( 'GRAPHQL_DEBUG', true ); to your wp-config.php for more detailed error messages.
ERROR
gatsby-source-wordpress Error occured while fetching non-Node root fields.
not finished source and transform nodes - 151.951s
not finished Downloading remote files - 35.117s
not finished Generating image thumbnails - 122.007s
not finished gatsby-source-wordpress fetch root fields - 1.397s
(sharp:69783): GLib-CRITICAL **: 16:03:27.305: g_hash_table_lookup: assertion 'hash_table != NULL' failed
A public, non-authenticated request would return a null value for the field and would return an error message in the GraphQL response. However, it wouldn’t block the execution of the entire GraphQL request, just that field. So, if the request had a mix of publicly allowed fields and private fields, GraphQL would still execute the public data.
Which leads to my questions:
Why are the allSettings.generalSettingsEmail and generalSettings.email actually necessary for the build process?
If part of a larger query, shouldn't this query actually be succeeding and just leaving those fields blank?
@jasonbahl -- could you provide more guidance on how to actually use the wp-graphql plugin with the authentication plugins you mention in the documentation?
Activity
etnichols commentedon Aug 25, 2020
@jasonbahl -- could you provide more guidance on how to actually use the wp-graphql plugin with the authentication plugins you mention in the documentation?
etnichols commentedon Aug 26, 2020
Workaround:
To bypass the auth-only fields.