mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
FIX: handle rate limiting from nginx (#6300)
This commit is contained in:
parent
87d443f070
commit
774e6bc795
@ -318,7 +318,10 @@ export default Ember.Component.extend({
|
||||
})
|
||||
.catch(data => {
|
||||
if (data.jqXHR && data.jqXHR.status === 429) {
|
||||
const error = data.jqXHR.responseJSON.errors[0];
|
||||
const error = data.jqXHR.responseJSON
|
||||
? data.jqXHR.responseJSON.errors[0]
|
||||
: data.jqXHR.responseText;
|
||||
|
||||
this.set("rateLimitationString", error);
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user