{"action":"created","issue":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/2621","repository_url":"https://api.github.com/repos/gatsbyjs/gatsby","labels_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/2621/labels{/name}","comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/2621/comments","events_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/2621/events","html_url":"https://github.com/gatsbyjs/gatsby/issues/2621","id":268570602,"number":2621,"title":"Errors trying to run using-wordpress example","user":{"login":"ilyabo","id":351828,"avatar_url":"https://avatars0.githubusercontent.com/u/351828?v=4","gravatar_id":"","url":"https://api.github.com/users/ilyabo","html_url":"https://github.com/ilyabo","followers_url":"https://api.github.com/users/ilyabo/followers","following_url":"https://api.github.com/users/ilyabo/following{/other_user}","gists_url":"https://api.github.com/users/ilyabo/gists{/gist_id}","starred_url":"https://api.github.com/users/ilyabo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilyabo/subscriptions","organizations_url":"https://api.github.com/users/ilyabo/orgs","repos_url":"https://api.github.com/users/ilyabo/repos","events_url":"https://api.github.com/users/ilyabo/events{/privacy}","received_events_url":"https://api.github.com/users/ilyabo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-25T22:24:31Z","updated_at":"2017-10-25T22:56:34Z","closed_at":null,"author_association":"NONE","body":"I am trying to run the wordpress API example. Using a fresh clone of master with latest gatsby. It fails with multiple errors. At least some of them are apparently caused by unauthorized API calls. Is it just because the plugin configuration is missing  the auth section?\r\n\r\n```\r\nsuccess delete html files from previous builds — 0.011 s\r\nsuccess open and validate gatsby-config.js — 0.006 s\r\nsuccess copy gatsby files — 0.025 s\r\nsuccess onPreBootstrap — 0.009 s\r\n⠁ source and transform nodes -> wordpress__POST fetched : 2\r\n⡀ source and transform nodes -> wordpress__PAGE fetched : 1\r\n⠐ source and transform nodes -> wordpress__wp_media fetched : 2\r\n⠂ source and transform nodes -> wordpress__wp_types fetched : 1\r\n⠐ source and transform nodes -> wordpress__wp_statuses fetched : 1\r\n⠁ source and transform nodes -> wordpress__wp_taxonomies fetched : 1\r\n⢀ source and transform nodes -> wordpress__CATEGORY fetched : 3\r\n⠈ source and transform nodes -> wordpress__TAG fetched : 2\r\n⠄ source and transform nodes -> wordpress__wp_users fetched : 1\r\n⠠ source and transform nodesThe server response was \"401 Unauthorized\"\r\nInner exception message : \"You are not currently logged in.\"\r\n⠁ source and transform nodes -> wordpress__wp_comments fetched : 0\r\n⡀ source and transform nodesThe server response was \"403 Forbidden\"\r\nInner exception message : \"Sorry, you are not allowed to do that.\"\r\n⠐ source and transform nodesThe server response was \"404 Not Found\"\r\nInner exception message : \"No route was found matching the URL and request method\"\r\nsuccess source and transform nodes — 5.794 s\r\nsuccess building schema — 0.255 s\r\nsuccess createLayouts — 0.020 s\r\nsuccess createPages — 0.025 s\r\nsuccess createPagesStatefully — 0.007 s\r\nsuccess onPreExtractQueries — 0.003 s\r\nGraphQL Error Unknown type \"WordPressAcf_post_photo\".\r\n\r\n  file: /Users/ilyabo/Workspace/_pantry/gatsby/examples/using-wordpress/src/templates/post.js\r\n\r\n   1 | \r\n   2 |   query currentPostQuery($id: String!) {\r\n   3 |     wordpressPost(id: { eq: $id }) {\r\n   4 |       title\r\n   5 |       content\r\n   6 |       ...PostIcons\r\n   7 |       acf {\r\n   8 |         page_builder_post {\r\n   9 |           __typename\r\n> 10 |           ... on WordPressAcf_post_photo {\r\n     |                  ^\r\n  11 |             photo {\r\n  12 |               localFile {\r\n  13 |                 childImageSharp {\r\n  14 |                   sizes(maxWidth: 680) {\r\n  15 |                     ...GatsbyImageSharpSizes\r\n  16 |                   }\r\n  17 |                 }\r\n  18 |               }\r\n  19 |             }\r\n  20 |           }\r\n\r\nsuccess extract queries from components — 0.222 s\r\nsuccess run graphql queries — 0.009 s\r\nsuccess write out page data — 0.012 s\r\nsuccess write out redirect data — 0.004 s\r\nsuccess update schema — 0.217 s\r\nsuccess onPostBootstrap — 0.001 s\r\n\r\ninfo bootstrap finished - 8.446 s\r\n\r\nerror There was an error compiling the html.js component for the development server.\r\n\r\nSee our docs page on debugging HTML builds for help https://goo.gl/yL9lND\r\n\r\n\r\n  Error: Module build failed: TypeError: [BABEL] /Users/ilyabo/Workspace/_pantry/gatsby/  examples/using-wordpress/.cache/develop-static-entry.js: Invalid options type for fore  ign\r\n  \r\n  - logger.js:39 Logger.error\r\n    [Workspace]/[babel-core]/lib/transformation/file/logger.js:39:11\r\n  \r\n  - option-manager.js:243 OptionManager.mergeOptions\r\n    [Workspace]/[babel-core]/lib/transformation/file/options/option-manager.js:243:16\r\n  \r\n  - option-manager.js:349 \r\n    [Workspace]/[babel-core]/lib/transformation/file/options/option-manager.js:349:14\r\n  \r\n  - option-manager.js:375 \r\n    [Workspace]/[babel-core]/lib/transformation/file/options/option-manager.js:375:22\r\n  \r\n  - Array.map\r\n  \r\n  - option-manager.js:364 OptionManager.resolvePresets\r\n    [Workspace]/[babel-core]/lib/transformation/file/options/option-manager.js:364:20\r\n  \r\n  - option-manager.js:348 OptionManager.mergePresets\r\n    [Workspace]/[babel-core]/lib/transformation/file/options/option-manager.js:348:10\r\n  \r\n  - option-manager.js:307 OptionManager.mergeOptions\r\n    [Workspace]/[babel-core]/lib/transformation/file/options/option-manager.js:307:14\r\n  \r\n  - option-manager.js:465 OptionManager.init\r\n    [Workspace]/[babel-core]/lib/transformation/file/options/option-manager.js:465:10\r\n  \r\n  - index.js:194 File.initOptions\r\n    [Workspace]/[babel-core]/lib/transformation/file/index.js:194:75\r\n  \r\n  - index.js:123 new File\r\n    [Workspace]/[babel-core]/lib/transformation/file/index.js:123:22\r\n  \r\n  - pipeline.js:45 Pipeline.transform\r\n    [Workspace]/[babel-core]/lib/transformation/pipeline.js:45:16\r\n  \r\n  - index.js:14 transpile\r\n    [Workspace]/[babel-loader]/index.js:14:22\r\n  \r\n  - fs-cache.js:145 \r\n    [Workspace]/[babel-loader]/lib/fs-cache.js:145:18\r\n  \r\n  - fs-cache.js:28 ReadFileContext.callback\r\n    [Workspace]/[babel-loader]/lib/fs-cache.js:28:23\r\n  \r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/comments/339499210","html_url":"https://github.com/gatsbyjs/gatsby/issues/2621#issuecomment-339499210","issue_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/2621","id":339499210,"user":{"login":"ilyabo","id":351828,"avatar_url":"https://avatars0.githubusercontent.com/u/351828?v=4","gravatar_id":"","url":"https://api.github.com/users/ilyabo","html_url":"https://github.com/ilyabo","followers_url":"https://api.github.com/users/ilyabo/followers","following_url":"https://api.github.com/users/ilyabo/following{/other_user}","gists_url":"https://api.github.com/users/ilyabo/gists{/gist_id}","starred_url":"https://api.github.com/users/ilyabo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilyabo/subscriptions","organizations_url":"https://api.github.com/users/ilyabo/orgs","repos_url":"https://api.github.com/users/ilyabo/repos","events_url":"https://api.github.com/users/ilyabo/events{/privacy}","received_events_url":"https://api.github.com/users/ilyabo/received_events","type":"User","site_admin":false},"created_at":"2017-10-25T22:56:34Z","updated_at":"2017-10-25T22:56:34Z","author_association":"NONE","body":"I now tried to create a new website on wordpress.com and added a developer app there. I added the auth section to the gatsby wordpress plugin conf accordingly and set `hostingWPCOM: true`. Now more requests get through, but still it fails on photos:\r\n\r\n```\r\nsuccess delete html files from previous builds — 0.008 s\r\nsuccess open and validate gatsby-config.js — 0.004 s\r\ninfo One or more of your plugins have changed since the last time you ran Gatsby. As\r\na precaution, we're deleting your site's cache to ensure there's not any stale\r\ndata\r\nsuccess copy gatsby files — 0.042 s\r\nsuccess onPreBootstrap — 0.008 s\r\n⠁ source and transform nodes -> wordpress__POST fetched : 3\r\n⠠ source and transform nodes -> wordpress__PAGE fetched : 5\r\n⠈ source and transform nodes -> wordpress__wp_media fetched : 9\r\n⠄ source and transform nodes -> wordpress__wp_jp_pay_order fetched : 0\r\n⠈ source and transform nodes -> wordpress__wp_jp_pay_product fetched : 0\r\n⡀ source and transform nodes -> wordpress__wp_feedback fetched : 0\r\n⠐ source and transform nodes -> wordpress__wp_types fetched : 1\r\n⠄ source and transform nodes -> wordpress__wp_statuses fetched : 1\r\n⠈ source and transform nodes -> wordpress__wp_taxonomies fetched : 1\r\n⠄ source and transform nodes -> wordpress__CATEGORY fetched : 1\r\n⠐ source and transform nodes -> wordpress__TAG fetched : 1\r\n⡀ source and transform nodes -> wordpress__wp_users fetched : 1\r\n⠁ source and transform nodes -> wordpress__wp_me fetched : 1\r\n⠈ source and transform nodes -> wordpress__wp_comments fetched : 0\r\n⠐ source and transform nodes -> wordpress__wp_settings fetched : 1\r\n⡀ source and transform nodes -> wordpress__wp_jetpack_testimonial fetched : 2\r\n⠂ source and transform nodesThe server response was \"404 Not Found\"\r\nInner exception message : \"No route was found matching the URL and request method\"\r\nsuccess source and transform nodes — 7.167 s\r\nsuccess building schema — 0.296 s\r\nsuccess createLayouts — 0.042 s\r\nsuccess createPages — 0.040 s\r\nsuccess createPagesStatefully — 0.006 s\r\nsuccess onPreExtractQueries — 0.005 s\r\nGraphQL Error Unknown type \"WordPressAcf_post_photo\".\r\n\r\n  file: /Users/ilyabo/Workspace/fsb/src/templates/post.js\r\n\r\n   1 | \r\n   2 |   query currentPostQuery($id: String!) {\r\n   3 |     wordpressPost(id: { eq: $id }) {\r\n   4 |       title\r\n   5 |       content\r\n   6 |       ...PostIcons\r\n   7 |       acf {\r\n   8 |         page_builder_post {\r\n   9 |           __typename\r\n> 10 |           ... on WordPressAcf_post_photo {\r\n     |                  ^\r\n  11 |             photo {\r\n  12 |               localFile {\r\n  13 |                 childImageSharp {\r\n  14 |                   sizes(maxWidth: 680) {\r\n  15 |                     ...GatsbyImageSharpSizes\r\n  16 |                   }\r\n  17 |                 }\r\n  18 |               }\r\n  19 |             }\r\n  20 |           }\r\n\r\nsuccess extract queries from components — 0.217 s\r\nGraphQL Error Unknown type \"WordPressAcf_post_photo\".\r\n\r\n  file: /Users/ilyabo/Workspace/fsb/src/templates/post.js\r\n\r\n   1 | \r\n   2 |   query currentPostQuery($id: String!) {\r\n   3 |     wordpressPost(id: { eq: $id }) {\r\n   4 |       title\r\n   5 |       content\r\n   6 |       ...PostIcons\r\n   7 |       acf {\r\n   8 |         page_builder_post {\r\n   9 |           __typename\r\n> 10 |           ... on WordPressAcf_post_photo {\r\n     |                  ^\r\n  11 |             photo {\r\n  12 |               localFile {\r\n  13 |                 childImageSharp {\r\n  14 |                   sizes(maxWidth: 680) {\r\n  15 |                     ...GatsbyImageSharpSizes\r\n  16 |                   }\r\n  17 |                 }\r\n  18 |               }\r\n  19 |             }\r\n  20 |           }\r\n\r\nsuccess run graphql queries — 0.098 s\r\nsuccess write out page data — 0.004 s\r\nsuccess write out redirect data — 0.001 s\r\nsuccess update schema — 0.169 s\r\nsuccess onPostBootstrap — 0.001 s\r\n\r\ninfo bootstrap finished - 11.02 s\r\n\r\nerror There was an error compiling the html.js component for the development server.\r\n\r\nSee our docs page on debugging HTML builds for help https://goo.gl/yL9lND\r\n\r\n\r\n  Error: Module build failed: TypeError: [BABEL] /Users/ilyabo/Workspace/fsb/.cache/develop-static-entry.js: Invalid options type for foreign\r\n  \r\n  - logger.js:39 Logger.error\r\n    [Workspace]/[babel-core]/lib/transformation/file/logger.js:39:11\r\n  \r\n  - option-manager.js:243 OptionManager.mergeOptions\r\n    [Workspace]/[babel-core]/lib/transformation/file/options/option-manager.js:243:16\r\n  \r\n  - option-manager.js:349 \r\n    [Workspace]/[babel-core]/lib/transformation/file/options/option-manager.js:349:14\r\n  \r\n  - option-manager.js:375 \r\n    [Workspace]/[babel-core]/lib/transformation/file/options/option-manager.js:375:22\r\n  \r\n  - Array.map\r\n  \r\n  - option-manager.js:364 OptionManager.resolvePresets\r\n    [Workspace]/[babel-core]/lib/transformation/file/options/option-manager.js:364:20\r\n  \r\n  - option-manager.js:348 OptionManager.mergePresets\r\n    [Workspace]/[babel-core]/lib/transformation/file/options/option-manager.js:348:10\r\n  \r\n  - option-manager.js:307 OptionManager.mergeOptions\r\n    [Workspace]/[babel-core]/lib/transformation/file/options/option-manager.js:307:14\r\n  \r\n  - option-manager.js:465 OptionManager.init\r\n    [Workspace]/[babel-core]/lib/transformation/file/options/option-manager.js:465:10\r\n  \r\n  - index.js:194 File.initOptions\r\n    [Workspace]/[babel-core]/lib/transformation/file/index.js:194:75\r\n  \r\n  - index.js:123 new File\r\n    [Workspace]/[babel-core]/lib/transformation/file/index.js:123:22\r\n  \r\n  - pipeline.js:45 Pipeline.transform\r\n    [Workspace]/[babel-core]/lib/transformation/pipeline.js:45:16\r\n  \r\n  - index.js:14 transpile\r\n    [Workspace]/[babel-loader]/index.js:14:22\r\n  \r\n  - fs-cache.js:145 \r\n    [Workspace]/[babel-loader]/lib/fs-cache.js:145:18\r\n  \r\n  - fs-cache.js:28 ReadFileContext.callback\r\n    [Workspace]/[babel-loader]/lib/fs-cache.js:28:23\r\n\r\n\r\n``` "}}
{"actor":{"display_login":"ilyabo"}}