• Resolved LonelyPilgrim

    (@lonelypilgrim)


    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter LonelyPilgrim

    (@lonelypilgrim)

    I managed to get the follow button working by sending the blog ID instead of the URL as the data-blog attribute. But I would still like to know why the REST API is not recognizing my URL, and if possible, fix that.

    Thread Starter LonelyPilgrim

    (@lonelypilgrim)

    Other Jetpack features are broken because of this, like Related Posts, and probably others.

    Thread Starter LonelyPilgrim

    (@lonelypilgrim)

    An update: On a whim this morning I queried the REST API with the URL www.lonelypilgrim.com — and it worked. But my site has never been www, just plain old lonelypilgrim.com without the subdomain. I never entered www as my URL anywhere, yet somehow the server has gotten the idea that this is my URL. It seems to me this may be something the Jetpack support people can fix, and I have asked them to.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘REST API responds to my blog ID, but not my URL’ is closed to new replies.