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

Return 429 to the client if twtich pubsub API returns 429 #7

Open
MaT1g3R opened this issue Mar 22, 2023 · 0 comments
Open

Return 429 to the client if twtich pubsub API returns 429 #7

MaT1g3R opened this issue Mar 22, 2023 · 0 comments

Comments

@MaT1g3R
Copy link
Collaborator

MaT1g3R commented Mar 22, 2023

Currently the mod throws this error when we run into a twitch pubsub API rate limit. We should handle that case and return a 429 instead

java.io.IOException: Server returned HTTP response code: 500 for URL: **********
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1876)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
	at str_exporter.BackendBroadcaster.broadcastMessage(BackendBroadcaster.java:108)
	at str_exporter.BackendBroadcaster.readQueue(BackendBroadcaster.java:87)
	at str_exporter.BackendBroadcaster.lambda$new$0(BackendBroadcaster.java:36)
	at java.lang.Thread.run(Thread.java:748)01:07:51.325 INFO basemod.BaseMod>
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