Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fails on POST with 400 #5

Open
yankeeinlondon opened this issue Dec 3, 2018 · 3 comments
Open

fails on POST with 400 #5

yankeeinlondon opened this issue Dec 3, 2018 · 3 comments

Comments

@yankeeinlondon
Copy link

I configured the gridsome.config.js file to point to my site and playing around with the GraphQL explore URL it would appear it has connected correctly but when I run "develop" webpage I get a blank screen with two errors:

  1. The first is a POST request
    image

  2. Then a Vue warning: "Cannot read property 'allWordPressPost' of undefined""
    image

  3. Finally, there is another run-time error which seems like a restatement of the second:
    image

Since the error stems from the allWordPressPost query I thought I'd try a sample query from the explorer to see if it worked. Now I must admit I know very little about GraphQL but here are the query results:

image

Note: this blog has 1000's of posts from as early as 2001

@yankeeinlondon
Copy link
Author

Just noticed another message that might be helpful in debugging. When starting with yarn develop I see the following:

image

immediately afterward this completes and these errors are swallowed and replaced with:

image

@yankeeinlondon
Copy link
Author

yankeeinlondon commented Dec 3, 2018

I have also gone to https://my.blog.com/wp-json and validated that the API is enabled for sure. Also of note ... I am using 4.9.8 of Wordpress.

@yankeeinlondon
Copy link
Author

yankeeinlondon commented Dec 3, 2018

I have also run the build scripts ECONNRESET error's URL in the browser and it returns fine:

image

I thought maybe the quantity of "perPage" was too high so I changed to 25 but Gridsome still gets a ECONNRESET error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant