Wordpress Souce Plugin - Error: ECONNREFUSED - /wp-json/wp/v2/types
See original GitHub issueDescription
Trying to setup a gridsome site using the official wordpress plugin (@gridsome/source-wordpress) but when I’m running gridsome explore
or gridsome develop
I get an Error.
Steps to reproduce
Setup a new gridsome website using the WordPress starter kit (gridsome create my-blog wordpress
). Add the website baseUrl then run gridsome develop
.
Expected result
Gridsome should be able to start the development server and fetch the WordPress data.
Actual result
$ gridsome develop
Gridsome v0.6.6
Initializing plugins...
Initialize - 1.81s
Loading data from
Error: ECONNREFUSED - /wp-json/wp/v2/types
at WordPressSource.fetch (B:\Projets\Dev\Websites\travel-blog-gridsome\node_modules\@gridsome\source-wordpress\index.js:168:15)
at process._tickCallback (internal/process/next_tick.js:68:7)
I tried hitting the endpoint /wp-json/wp/v2/types
in my browser and in Postman and everything is okay. I have a few types there outside of post
, page
and attachments
. I see wp_blocks
, feedback
, jp_pay_order
and jp_pay_product
.
Environment
Libs:
- gridsome version: 0.6.6
- @gridsome/cli version: 0.0.8
Browser:
- [X ] Chrome (desktop) version 75.0.3770.100
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
For Tooling issues:
- Node version: v10.10.0
- Platform: Windows 10
Others:
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (3 by maintainers)
Top Results From Across the Web
wordpress - Error: connect ECONNREFUSED 127.0.0.1:8080
Problem is with plugin. In config options of gatsby-source-woocommerce, comment everything after fields i.e ... set wpAPIPrefix to wp-json .
Read more >Here is an error associated with Connecting WordPress Rest ...
I switched PHP V7.4 to V8.0 and after a Permalink update and notification is gone. I cleared the cache of the site as...
Read more >Common WordPress REST API Errors and What to Do About ...
Another common cause of broken permalinks is having a misconfigured .htaccess file. If you go to your WP Admin dashboard and then navigate...
Read more >Impossible to connect Wordpress to Zapier "/wp-json/zapier/v1 ...
Hey everyone, Trying to connect a wordpress website to zapier. Plugin well installed and well activated. Specific account created Still get ...
Read more >Using Local and Gatsby connection error - Support
Add WP Gatsby and WP Graphql plugins. Create a new Gatsby site. install gatsby-source-wordpress plugin. Add the localhost url to. When I create ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok I realised that on project setup I used the Wordpress Starter Kit
gridsome create my-gridsome-site wordpress
.I setup a new project with the standard setup
gridsome create my-gridsome-site
and added the wordpress source plugin by hand. I don’t have the ECONNREFUSED problem anymore! So it looks like the problem come from the wordpress starter.Okay so I deactivated the SMUSH plugin and now it’s working like a charm!