You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to upload a locally saved animated gif with the example in the readme, but I get an error.
I can post statue without image fine. But this gets broken when trying to add the media. (media/upload).
PHP Fatal error: Uncaught exception 'Abraham\TwitterOAuth\TwitterOAuthException' with message 'Operation timed out after 5074 milliseconds with 0 bytes received' in /Users/USERNAME/vendor/abraham/twitteroauth/src/TwitterOAuth.php:403
Stack trace:
#0 /Users/USERNAME/vendor/abraham/twitteroauth/src/TwitterOAuth.php(334): Abraham\TwitterOAuth\TwitterOAuth->request('https://upload....', 'POST', 'Authorization: ...', Array)
#1 /Users/USERNAME/vendor/abraham/twitteroauth/src/TwitterOAuth.php(305): Abraham\TwitterOAuth\TwitterOAuth->oAuthRequest('https://upload....', 'POST', Array)
#2 /Users/USERNAME/vendor/abraham/twitteroauth/src/TwitterOAuth.php(252): Abraham\TwitterOAuth\TwitterOAuth->http('POST', 'https://upload....', 'media/upload', Array)
#3 /Users/USERNAME/vendor/abraham/twitteroauth/src/TwitterOAuth.php(235): Abraham\TwitterOAuth\TwitterOAuth->uploadMediaNotChunked('media/upload', Array)
#4 /Users/USERNAME/uplaod.php(59): Abraham\TwitterOAuth\TwitterOAuth->upload('media/ in /Users/USERNAME/vendor/abraham/twitteroauth/src/TwitterOAuth.php on line 403
I'm trying to upload a locally saved animated gif with the example in the readme, but I get an error.
I can post statue without image fine. But this gets broken when trying to add the media. (media/upload).
This is my source code:
The text was updated successfully, but these errors were encountered: