Boostnote: Publishing to wordpress weblog not working because of WP_POST_PATH

Created on 28 Mar 2020  路  4Comments  路  Source: BoostIO/Boostnote

Current behavior

Trying to publish to a standard wordpress installation ( Version 5.3.2 ) fails in boostote 0.15.2.

Expected behavior

Publishing succeeds.

Steps to reproduce

  1. Create an arbitraty entry in boostnote;
  2. configure wordpress blog endpoint and
  3. use "Publish Blog"

Patch

I could patch the issue by changing (in compiled main.js)
var WP_POST_PATH = '/wp/v2/posts';
to
var WP_POST_PATH = '/wp-json/wp/v2/posts';
Obviously the API endpoint has slightly changed.

Maybe it helps to make it configurable,

Environment

Trying to publish to a standard wordpress installation ( Version ) fails in boostote 0.15.2.
Trying to publish to a standard wordpress installation ( Version 5.3.2 ) fails in boostote 0.15.2.

  • Boostnote version: 0.15.2
  • OS version and name: Windows 10
  • Wordpress Version: 5.3.2; WP BASIC Auth Plugin V 1.1.3
bug level 1 won鈥檛 fix

All 4 comments

Thanks for reporting the issue and already looking for a fix!

Could you submit a PR with the suggested change? That way we can review it and make it part of the next release.

Thank for getting back. I haven't set it up but will try!

After investigating this issue, it's not Boostnote issue. You have to specify the url with /wp-json in the configuration. This is a example from our default config:
https://github.com/BoostIO/Boostnote/blob/4fbbb4651dd5ef1164fd3885ee354368673fbb08/browser/main/lib/ConfigManager.js#L135

Thanks for investigating; I will try with the next update.
Still skeptical about compatibilty with self-hosted wordpress. Let's see.
UPDATE: checked with 0.15.3 : it works, if configured exactly like proposed (trailing slash will NOT work).
Thanks!
Maybe a hint in the UI could work. At least we have this thread now ;-)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Petroochio picture Petroochio  路  3Comments

npeeples picture npeeples  路  3Comments

NonlinearFruit picture NonlinearFruit  路  3Comments

necan picture necan  路  3Comments

DanielRamosAcosta picture DanielRamosAcosta  路  3Comments