twitteroauth icon indicating copy to clipboard operation
twitteroauth copied to clipboard

1.1 statuses/update never returns; terminates script

Open ppetree opened this issue 13 years ago • 2 comments

I have a solid connection, can query user time line: $results = $twitter->get('statuses/user_timeline', $params);

I can get user info and do most anything BUT I can't post... well, that's not really true, it DOES post but the post NEVER returns.

$tweet = array('status' => $message,
                        'in_reply_to_status_id' =>$tweetback['tw_topicid']); 

// post the tweet
$response = $twitter->post('statuses/update', $tweet);

That last line does post $message in reply to the tweet but it never returns and the entire script terminates.

Any ideas?

ppetree avatar Aug 19 '13 17:08 ppetree

Did you check some logs at your server? Eg /var/logs/apache2/error.log (if you use Apache2 on your one server)

Did you enable the logs on your server? Optionally via htaccess

it never returns and the entire script terminates

seems like an exception, should be thrown somewhere. On most production servers, this will be in a file, on dev servers on the browser/script itself.

On 19 Aug 2013, at 18:21, ppetree [email protected] wrote:

I have a solid connection, can query user time line: $results = $twitter->get('statuses/user_timeline', $params);

I can get user info and do most anything BUT I can't post... well, that's not really true, it DOES post but the post NEVER returns.

$tweet = array('status' => $message, 'in_reply_to_status_id' =>$tweetback['tw_topicid']);

// post the tweet $response = $twitter->post('statuses/update', $tweet); That last line does post $message in reply to the tweet but it never returns and the entire script terminates.

Any ideas?

— Reply to this email directly or view it on GitHub.

jelledelaender avatar Aug 19 '13 17:08 jelledelaender

Probably an issues with your code.

abraham avatar Aug 09 '14 06:08 abraham