Replies: 0
Hello,
Thank you in advance for answer. I am experiencing the next problem:
I’ve added a self-hosted wordpress 4.7.2 site and installed latest JetPack(4.5) plugin.
I can publish new posts via admin panel from wordpress.com. It sends xmlrpc request with ‘internal’ param set to 1. So Jetpack is not checking it hard and my post is created with no problems.
But when I try to create post via API, fo example: https://public-api.wordpress.com/rest/v1.2/sites/68055767/posts/new
content=test&title=test
(I supply Authorization header too for wordpress.com)
it sends request to xmprpc with the exactly same tokens and etc. But without internal param set. So Jetpack performs hmac check:
if ( ! hash_equals( $hmac, $verify ) ) {
return false;
}
And it fails! I receive:
{“error”:”jetpack_response_error”,”message”:”The Jetpack site encountered an error and could not process the API request.”}
Speed of the site is definitely not an issue…
-
This topic was modified 1 minute ago by
skoba.









