gatsbyjs / gatsby-source-wordpress-experimental

The upcoming v4 of gatsby-source-wordpress, currently in beta
MIT License
385 stars 100 forks source link

Gatby Develop failing with a vague error on MediaItems fetching #455

Closed KabyleBOT closed 3 years ago

KabyleBOT commented 3 years ago

Hello,

I am getting this weird error on Gatby Develop :

warn gatsby-source-wordpress Couldn't find source url for media item #146064 warn gatsby-source-wordpress Couldn't find source url for media item #146064 warn gatsby-source-wordpress Couldn't find source url for media item #146064 warn gatsby-source-wordpress Couldn't find source url for media item #146064 warn gatsby-source-wordpress Couldn't find source url for media item #146064 warn gatsby-source-wordpress Couldn't find source url for media item #146064 warn gatsby-source-wordpress Couldn't find source url for media item #146064 Failed to validate error Error [ValidationError]: "errno" is not allowed. "syscall" is not allowed. "path" is not allowed. "dest" is not allowed at Object.exports.process (D:\Gatsby\Obs-Beta@0.0.1\node_modules\@hapi\joi\lib\errors.js:202:19) at internals.Object._validateWithOptions (D:\Gatsby\Obs-Beta@0.0.1\node_modules\@hapi\joi\lib\types\any\index.js:763:31) at internals.Object.validate (D:\Gatsby\Obs-Beta@0.0.1\node_modules\@hapi\joi\lib\types\any\index.js:797:21) at constructError (D:\Gatsby\Obs-Beta@0.0.1\node_modules\gatsby\node_modules\gatsby-cli\lib\structured-errors\construct-error.js:52:32) at Reporter.error (D:\Gatsby\Obs-Beta@0.0.1\node_modules\gatsby\node_modules\gatsby-cli\lib\reporter\reporter.js:135:59) at Reporter.panic (D:\Gatsby\Obs-Beta@0.0.1\node_modules\gatsby\node_modules\gatsby-cli\lib\reporter\reporter.js:75:34) at Object.panic (D:\Gatsby\Obs-Beta@0.0.1\node_modules\gatsby\src\utils\api-runner-node.js:213:16) at createRemoteMediaItemNode (D:\Gatsby\Obs-Beta@0.0.1\node_modules\gatsby-source-wordpress-experimental\src\steps\source-nodes\create-nodes\create-remote-media-item-node.js:354:24) { isJoi: true, name: 'ValidationError', details: [ { message: '"errno" is not allowed', path: [Array], type: 'object.allowUnknown', context: [Object] }, { message: '"syscall" is not allowed', path: [Array], type: 'object.allowUnknown', context: [Object] }, { message: '"path" is not allowed', path: [Array], type: 'object.allowUnknown', context: [Object] }, { message: '"dest" is not allowed', path: [Array], type: 'object.allowUnknown', context: [Object] } ], _object: { context: {}, errno: -4071, code: 'EINVAL', syscall: 'copyfile', path: 'D:\\Gatsby\\Obs-Beta@0.0.1\\.cache\\caches\\gatsby-source-wordpress-experimental\\f2e174b5122a21ee6799ba6d0980347f\\Montage: Passeport algérien sur fond des drapeaux algérien et allemand.webp', dest: 'D:\\Gatsby\\Obs-Beta@0.0.1\\.wordpress-cache\\assalas-com\\images\\q_100\\v1603481786\\Sans-titre-5_9207711e16\\Sans-titre-5_9207711e16.webp', pluginName: 'gatsby-source-wordpress-experimental', text: 'There was an error', level: 'ERROR', stack: [], docsUrl: 'https://gatsby.dev/issue-how-to' }, annotate: [Function] } not finished source and transform nodes - 124.908s not finished gatsby-source-wordpress fetching nodes - 124.779s - 626 total not finished gatsby-source-wordpress creating nodes - 21.325s not finished gatsby-source-wordpress MediaItem - 21.334s - fetched 70 not finished Downloading remote files - 1.785s

### Gatsby-configJS :

module.exports = { plugins: [ gatsby-plugin-react-helmet, { resolve:gatsby-source-filesystem, options: { name:images, path:${__dirname}/src/images, }, }, gatsby-plugin-material-ui, gatsby-transformer-sharp, gatsby-plugin-sharp, { resolve:gatsby-plugin-manifest, options: { name:OBS Algérie Version Beta, short_name:OBS, start_url:/, background_color:#00de85, theme_color:#33cc33, display:minimal-ui, icon:src/images/Logo-OBS.png, // This path is relative to the root of the site. }, }, { resolve:gatsby-source-wordpress-experimental, options: { url: // allows a fallback url if WPGRAPHQL_URL is not set in the env, this may be a local or remote WP instance. process.env.WPGRAPHQL_URL || https://backend.observalgerie.com/graphql, schema: { requestConcurrency: 5, // default set to undefined previewRequestConcurrency: 2, // default set to undefined // number of nodes perPage perPage: 30, //TimeOut in melliseconds timeout: 60000, //Prefixes all WP Types with "Wp" so "Post and allPost" become "WpPost and allWpPost". typePrefix:Wp, }, develop: { //caches media files outside of Gatsby's default cache an thus allows them to persist through a cache reset. hardCacheMediaFiles: true, }, type: { Post: { limit: process.env.NODE_ENV ===development&& // Lets just pull 100 posts in development to make it easy on ourselves (aka. faster). 100, }, User: { limit: process.env.NODE_ENV ===development&& // Lets just pull 100 posts in development to make it easy on ourselves (aka. faster). 100, }, Comment: { exclude: true, }, Bookmark: { exclude: true, }, Following: { exclude: true, }, Like: { exclude: true, }, Following: { exclude: true, }, CommentLike: { exclude: true, }, Subscription: { exclude: true, }, Note: { exclude: true, }, MediaItem: { localFile: { requestConcurrency: 50, }, }, }, html: { useGatsbyImage: true, fallbackImageMaxWidth: 800, }, debug: { graphql: { writeQueriesToDisk: true, }, }, }, }, ], }