WordPress.org

Support

Support » Plugins and Hacks » [Resolved] REST API Broken

[Resolved] REST API Broken

Viewing 15 replies - 1 through 15 (of 18 total)
  • rmarliere
    Member

    @rmarliere

    I’m having the exactly same issue. Did you fixed it? I already tried to reconnect the jetpack but with no success.

    antoine64
    Member

    @antoine64

    No I didn’t.

    I also tried to reconnect jetpack, no success.

    I use the REST API in mobile apps so it’s a big problem for me :/
    I tried to contact the wordpress team on twitter about that but I didn’t get an answer. I hope they will see this post soon.

    Beren
    Member

    @berenerchamion

    Having a similar issue as well. The Jetpack page says I am connected, but the API interface is not working. The debug page says my site is unable to communicate with Jetpack. I tried deactivating all plugins and switched to 2012 theme, but still I have the issue.

    Have you tried all those things? Same results?

    I am able to pull up my XMLRPC page ok.

    antoine64
    Member

    @antoine64

    I didn’t know the existence of the debug page !
    I have the same problem as you on the debug page berenerchamion, here is the result of the Jetpack debug page :

    It looks like your site can not communicate properly with Jetpack.
    SELF:
    Array
    (
        [headers] => Array
            (
                [server] => nginx
                [date] => Sun, 28 Jul 2013 14:30:05 GMT
                [content-type] => text/plain;charset=utf-8
                [connection] => close
                [x-pingback] => http://jetpack.wordpress.com/xmlrpc.php
                [expires] => Wed, 11 Jan 1984 05:00:00 GMT
                [cache-control] => no-cache, must-revalidate, max-age=60
                [pragma] => no-cache
                [x-hacker] => Jetpack Test
            )
    
        [body] => {"error":"Unknown Error","error_description":"An unknown error has occurred."}
        [response] => Array
            (
                [code] => 400
                [message] => Bad Request
            )
    
        [cookies] => Array
            (
            )
    
        [filename] =>
    )

    I didn’t change anything on my 2 blogs so it can’t be related to a theme or plugin. I think it’s a problem in the plugin or on the jetpack servers.

    sarbjitarora
    Member

    @sarbjitarora

    I am facing the same issue. It was working fine earlier. Something is broken with the REST API

    Beren
    Member

    @berenerchamion

    I fixed my access. What I did was disconnect my Jetpack completely and then re-connect it. I noticed that I had two connection indicators on teh Jetpack page, but when I disconnect both and then re-connected Jetpack now I have only one and the REST APIs work again.

    They even work when I have W3TC turned on with minification! Super!

    beren

    antoine64
    Member

    @antoine64

    Where do you find two indicators ? I found one on the top of the Jetpack administration page. It says “Connected to WordPress.com”. But I cannot find a second indicator !

    I already tried to disconnect and re-connect Jetpack but with no effect 🙁

    Beren
    Member

    @berenerchamion

    I had a second one right there – very odd – but now it is gone.

    Beren
    Member

    @berenerchamion

    Well – back to broken – simple requests like this:

    https://public-api.wordpress.com/rest/v1/sites/tarnaeluin.houseofbeor.net/posts?pretty=1&number=5

    fail with:
    {
    “error”: “token_target_mismatch”,
    “message”: “The authorization token does not match the API target.”
    }

    Beren
    Member

    @berenerchamion

    Yeah I can definitely see that there must be something broken in Jetpack. From curl this command works:

    curl ‘https://public-api.wordpress.com/rest/v1/sites/en.blog.wordpress.com/posts/7/?pretty=1’

    But if I change out the hostname and a post number for my own site I get the token mismatch above even though this call you don’t need a token for.

    Matthew Boynes
    Participant

    @mboynes

    This is also broken for me, same issue as described above.

    antoine64
    Member

    @antoine64

    You’re right berenerchamion : REST API works for the official wordpress blog, and I think for all wordpress.com blogs but it is broken for all self-hosted blogs.

    We’re waiting for WordPress team support !

    Plugin Author Jeremy Herve
    Participant

    @jeherve

    Thank you all for the reports! We’re looking into it, and I’ll get back to you as soon as I have some news.

    Plugin Author Jeremy Herve
    Participant

    @jeherve

    The problem should now be fixed.

    If you still experience issues, can you please use Jetpack’s Debugger module to send us some more information about your site?

    1) Go to the Jetpack page in your dashboard.
    2) Click on the Debug link appearing at the bottom of the page.
    3) Click the link that says “click here to contact Jetpack support.”
    4) Fill in the description box and your name and email address.
    5) Click the “Contact Support” button.

    Thanks!

    Beren
    Member

    @berenerchamion

    Thanks Mr. Happiness!

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘[Resolved] REST API Broken’ is closed to new replies.