Closed rburgstaller closed 4 years ago
Huh 🤔 that's odd. I'll add the check in. Do you have a graphql endpoint I could use to reproduce this? This might indicate other problems that should be accounted for earlier.
sorry, the endpoint is only available behind a vpn. If you give me hints where I could debug, I can try to analyze further back the call stack.
No worries, I figured it out! If you update to gatsby-source-wordpress-experimental@0.0.34
it's fixed. The problem was that some queries were returning a literal null in the response and I wasn't checking for that.
I am getting the following error in
paginatedWpNodeFetch
the fix is to add a check in https://github.com/TylerBarnes/gatsby/blob/feat/source-wordpress-v4/packages/gatsby-source-wordpress-experimental/src/steps/source-nodes/fetch-nodes/fetch-nodes-paginated.js#L68
I havent really analyzed why the nodes array contains all
null
values. But at least with this fix it works.