Automattic / google-docs-add-on

Publish to WordPress from Google Docs
GNU General Public License v3.0
165 stars 21 forks source link

404 -- Unknown POST type when connecting google docs add on to WP blog #115

Closed jeff-vincent closed 4 years ago

jeff-vincent commented 5 years ago

I'm using a Chromebook and trying to connect to a WP blog. When I click "Add Wordpress Site"; select my blog from the dropdown list; and click "Approve" ...

I get this error as html in my browser:

Request failed for https://public-api.wordpress.com/rest/v1.1/sites/148624828/post-types/page/taxonomies returned code 404. Truncated server response: {"error":"unknown_post_type","message":"Unknown post type"} (use muteHttpExceptions option to examine full response)
douglas-johnson commented 4 years ago

I am experiencing a very similar issue. It might be the exact same problem so I'm adding on to this issue instead of making a new one.

Here is a screenshot of the error I receive once the OAuth process redirects me back to Google Docs.

Screen Shot 2020-08-11 at 12 38 14 PM

I've also provided video of the OAuth process to VIP support in this Zendesk issue: https://wordpressvip.zendesk.com/hc/en-us/requests/114155

mikeyarce commented 4 years ago

@georgeh - as @douglas-johnson is showing, we have this issue on VIP Go right now.
Here's what is happening:

Can we limit this to just posts somehow?

georgeh commented 4 years ago

@mikeyarce it looks like that the taxonomies query that is blowing up, so I am skipping post_types where publicly_queryable === false in #120: https://github.com/Automattic/google-docs-add-on/pull/120/commits/4072a3d934055a20c401c72e0edbea9f722fc7c1

Once I have a testable version posted somewhere can I get you to test it?

mikeyarce commented 4 years ago

Once I have a testable version posted somewhere can I get you to test it?

Absolutely, @georgeh !