sayar / node-wporg Goto Github PK
View Code? Open in Web Editor NEWA node WordPress(.org) client.
License: MIT License
A node WordPress(.org) client.
License: MIT License
Hi,
I'm using node-wporg to post to a local Wordpress 4.2.2 installation. The posts appear on the blog without any issues, but the client.newPost() function ends with an error: [Error: Unknown XML-RPC tag 'P']
I have tried updating the XML-RPC dependency to 1.3.1. The update didn't seem to break node-wporg, but it also didn't fix anything.
Do you have a suggestion on how to debug this issue? My posts seem to be posting fine and I also can't figure out what 'P' can be. I don't post any data with a capital 'P'.
Thanks in advance!
Hi Rami,
I have been using wporg locally in a test environment and it has been working. However, now I've deployed my website with CloudFlare and https it's no longer working. When I bypass CloudFlare, wporg can successfully connect to my WordPress site. But when I enable CloudFlare I get the following error:
[Error: Unexpected end
Line: 0
Column: 0
Char: ]
The strange thing is that when I use the wordpress npm package (https://www.npmjs.com/package/wordpress), I can successfully list all the posts on my website. Also using python-wordpress-xmlrpc I can list my posts when behind CloudFlare.
My conclusion from this is: XML-RPC is working correctly on my website, both with CloudFlare enabled and when disabled. Something in wporg is not working as it should...
I'd really like to continue to use wporg because I think it is the most full-featured WordPress XML-RPC interface for Node.js. And if I switch to a different library I'd need to change my code too. Do you think you could have a look at this issue? I could give you a test account for my site if that helps. Or do you recommend using another library?
Hi
I have an app using WPORG, works great, but can't get it to work against a multisite WP instance. I am passing the blog ID to the client and have stepped through to see it appended to the request??
Thx
Myles
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.