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

Twitter API Connection Errors? #18

Closed
sebicas opened this issue Sep 27, 2012 · 5 comments
Closed

Twitter API Connection Errors? #18

sebicas opened this issue Sep 27, 2012 · 5 comments

Comments

@sebicas
Copy link

sebicas commented Sep 27, 2012

I am having a problem when the Twitter API is down, my whole application crash.
Is there any standar way to deal with connection errors?

Thanks!

@ttezel
Copy link
Owner

ttezel commented Sep 27, 2012

I'm assuming you're talking about the Streaming API. If Twitter closes the connection, the close event gets emitted, and twit will automatically do the reconnection for you.

@sebicas
Copy link
Author

sebicas commented Sep 27, 2012

No, not the Streaming API, the Status API I have my App posting twits every 20 minutes, and over the last 2 days it failed 3 times.

@ttezel
Copy link
Owner

ttezel commented Sep 27, 2012

OK, the callback you write should be handling the error then if twitter returns an error. Is there not enough information passed to the callback for you to handle the error?

@sebicas
Copy link
Author

sebicas commented Sep 27, 2012

You are right, looks like I wasn't handling the error correctly... problem solved! Thanks so much!

@ttezel
Copy link
Owner

ttezel commented Sep 27, 2012

no worries :)

@ttezel ttezel closed this as completed Sep 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants