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

503 Error From Twitter API- Campaign Function #8

Open
Kyle-Kerlew opened this issue Oct 11, 2022 · 4 comments
Open

503 Error From Twitter API- Campaign Function #8

Kyle-Kerlew opened this issue Oct 11, 2022 · 4 comments

Comments

@Kyle-Kerlew
Copy link
Contributor

Kyle-Kerlew commented Oct 11, 2022

I'm seeing instances of 503 HTTP responses coming back from the Twitter API. The bot is not handling these nor is it throwing an error to make this easily visible in Google Cloud. The bot should terminate early and throw an error or retry if a 503 is received. This error somehow resulted in a tweet being skipped.

This should be handled for all bot functions

@Kyle-Kerlew
Copy link
Contributor Author

Kyle-Kerlew commented Oct 11, 2022

The skipped tweet: https://twitter.com/ejsemjasp/status/1579556247254503424. I manually added her minutes since this was missed.

...
2022-10-10 16:00:11.805 EDT title: 'Service Unavailable',
2022-10-10 16:00:11.805 EDT detail: 'Service Unavailable',
2022-10-10 16:00:11.805 EDT type: 'about:blank',
2022-10-10 16:00:11.805 EDT status: 503
2022-10-10 16:00:11.805 EDT }
2022-10-10 16:00:11.805 EDT}
2022-10-10 16:00:12.205 EDTException from a finished function: TypeError: Cannot read properties of undefined (reading 'data')

@Kyle-Kerlew
Copy link
Contributor Author

For some reason, the cloud logs recognize that an error occurred in the function, but doesn't show up in error reporting. It's not required to figure that out as part of this issue, but it would be nice.

@Kyle-Kerlew
Copy link
Contributor Author

If you would like/need access to view the Google Cloud Project, message me on discord or tag me in a comment here and we'll coordinate. @dev_nerd2

@Kyle-Kerlew Kyle-Kerlew changed the title 403/503 Error From Twitter API 503 Error From Twitter API Oct 11, 2022
@Kyle-Kerlew Kyle-Kerlew changed the title 503 Error From Twitter API 503 Error From Twitter API- Campaign Function Oct 11, 2022
@Kyle-Kerlew
Copy link
Contributor Author

#11 PR for this issue

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

1 participant