Identify Failures From Rate Limiting
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
Inizia con la chiamata channel.update_partial e analizza come viene rappresentata la sua risposta quando la dashboard Stream registra un 429. Riproduci la richiesta soggetta a limitazione della frequenza e confrontala con una risposta normale, quindi verifica che i chiamanti possano distinguere gli errori di limitazione della frequenza, tramite la risposta o un’eccezione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hi!
We have a cron job that runs every evening syncing the chat configuration for all of our users. We saw that some of these requests would fail because of 429, according to the log available in the Stream dashboard
I tried to repeatedly calling the following code to reproduce the rate limiting
response = channel.update_partial({
'name' => name,
'image' => image,
})
puts response
I was able to get the 429s to show up in the dashboard, but the responses being printed out don't seem to be any different from the normal ones. There was no exception being thrown by the SDK either, which I think would have been the better way for handling failed requests.
What's the recommended way to check if individual requests have failed because of rate limiting based on the response?
Thanks!
- Lingua principale
- Ruby
- Stelle
- 32
- Fork
- 23
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di GetStream/stream-chat-ruby
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
GetStream/stream-chat-ruby#215 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
GetStream/stream-chat-ruby#133 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
GetStream/stream-chat-ruby#132 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
GetStream/stream-chat-ruby#127 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 28/100
GetStream/stream-chat-ruby#114 · 3 commenti · 1 reazione ·
Tutte le issue di GetStream/stream-chat-ruby
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
riscv/riscv-unified-db#2626 ·
-
Component: GLib
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
ds-drift
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
we-promise/sure#3693 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
simp/pupmod-simp-simp#395 ·