Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error handling in demo #316

Closed
abraham opened this issue Feb 20, 2015 · 4 comments
Closed

Improve error handling in demo #316

abraham opened this issue Feb 20, 2015 · 4 comments

Comments

@abraham
Copy link
Owner

abraham commented Feb 20, 2015

2015-02-20T05:40:01.339495+00:00 app[web.1]: [20-Feb-2015 05:40:01 UTC] PHP Fatal error:  Uncaught exception 'Abraham\TwitterOAuth\TwitterOAuthException' with message 'Request timed out.' in /app/vendor/abraham/twitteroauth/src/TwitterOAuth.php:311
2015-02-20T05:40:01.549171+00:00 app[web.1]: 10.101.131.90 - - [20/Feb/2015:05:40:01 +0000] "GET /favicon.ico HTTP/1.1" 404 209 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.53 Safari/537.36"
2015-02-20T05:40:01.339557+00:00 app[web.1]: Stack trace:
2015-02-20T05:40:01.339816+00:00 app[web.1]: #0 /app/vendor/abraham/twitteroauth/src/TwitterOAuth.php(251): Abraham\TwitterOAuth\TwitterOAuth->request('https://api.twi...', 'POST', 'Authorization: ...', Array)
2015-02-20T05:40:01.340033+00:00 app[web.1]: #1 /app/vendor/abraham/twitteroauth/src/TwitterOAuth.php(134): Abraham\TwitterOAuth\TwitterOAuth->oAuthRequest('https://api.twi...', 'POST', Array)
2015-02-20T05:40:01.340316+00:00 app[web.1]:   thrown in /app/vendor/abraham/twitteroauth/src/TwitterOAuth.php on line 311
2015-02-20T05:40:01.340180+00:00 app[web.1]: #2 /app/callback.php(27): Abraham\TwitterOAuth\TwitterOAuth->oauth('oauth/access_to...', Array)
2015-02-20T05:40:01.340198+00:00 app[web.1]: #3 {main}
2015-02-20T05:40:01.343373+00:00 app[web.1]: 10.101.131.90 - - [20/Feb/2015:05:39:55 +0000] "GET /callback.php?oauth_token=avaIQtW34x1epqFs67pPAd3MJBuoZnYP&oauth_verifier=2CI8qcn9IIRjKP9nl8CJUJsq7IvQOYmd HTTP/1.1" 500 - "https://api.twitter.com/oauth/authorize" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.53 Safari/537.36"
@EliuFlorez
Copy link
Contributor

?

@abraham abraham added this to the v1.0 milestone Feb 23, 2017
@abraham
Copy link
Owner Author

abraham commented Feb 23, 2017

The demo just assumes that requests work without checking for success.

@abraham abraham modified the milestones: v1.0, v2.0 Jul 2, 2018
@rana07i
Copy link

rana07i commented Oct 15, 2018

how to display errors

@abraham
Copy link
Owner Author

abraham commented Jul 24, 2023

TwitterOAuth is in maintenance mode and major improvements are no longer planned. #1188

@abraham abraham closed this as completed Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants