• Resolved robrave

    (@robrave)


    Using v2.9.8 of the plugin.

    Your server time: Friday, 23-Jan-2015 04:41:56 UTC Twitter’s time: There was an error querying Twitter’s servers. If these timestamps are not within 5 minutes of each other, your server will not connect to Twitter.

    Operation timed out after 1000 milliseconds with 8313 out of 12932 bytes received

    Why just 1 second? Can you please increase it a bit?

    Anyway, I need it to work now so I have edited the plugin:
    This line: $response = wp_remote_get( “https://twitter.com/”, array( ‘timeout’ => 1, ‘redirection’ => 1 ) );
    I changed timeout to 5 and the plugin now works perfectly.

    Thanks.

    https://wordpress.org/plugins/wp-to-twitter/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    For the record, that particularly aspect of the plugin has no effect of any kind on how the plugin works; just whether there’s the potential for problems. Changing that code may prevent a notice from popping up on the settings page, but does nothing related to posting to Twitter.

    Thread Starter robrave

    (@robrave)

    Probably, but don’t you think it is best to consider some scenario in which the connection between the server and Twitter are not that fast?

    Because with your timeout right now, the server must download the header within 1000ms. But that doesn’t happen ideally in all cases.

    At least give it some time and not just 1000ms.

    Another thing, if time synchronization is not that important on how the plugin works then please by all means just remove it. It is confusing to see all those unneeded errors.

    And you have this notice as well,
    ‘If these timestamps are not within 5 minutes of each other, your server will not connect to Twitter.’
    So, with that I thought it is important.

    Thanks.

    Thread Starter robrave

    (@robrave)

    Thanks for v3.0.0. I can see the timeout became 30s. Works perfectly fine now.

    Yes, v3.0.0 is really works perfect !

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Please increase time, can't connect to Twitter, it is timing out’ is closed to new replies.