REST API responds to my blog ID, but not my URL
-
Hi. I just moved my WP.com blog to my first live WP site (lonelypilgrim.com), and am trying to debug some issues. I installed the Jetpack and attempted to set up a “Follow on WordPress.com” button (using the button creation tool), but it fails. After chasing the problem through half a dozen scripts, I ended up where I started: the REST API does not recognize my blog URL. It does, however, recognize my blog ID (36681935). It responds appropriately to this request, sending back all the expected blog info:
GET https://public-api.wordpress.com/rest/v1/sites/36681935
But to this one (and a number of permutations, with and without the
https://
), it answers with the error message “Unknown blog”:GET https://public-api.wordpress.com/rest/v1/sites/http%3A%2F%2Flonelypilgrim.com
I tried disconnecting the Jetpack and reconnecting it. Any other ideas? Thanks.
- The topic ‘REST API responds to my blog ID, but not my URL’ is closed to new replies.