# 表情符号上传失败 - 回归问题？

**URL:** https://meta.discourse.org/t/emoji-upload-fails-regression/108746
**Category:** Support
**Created:** [2019年二月9日 14:24 UTC](https://meta.discourse.org/t/emoji-upload-fails-regression/108746 "2019-02-09T14:24:58Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![JSey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jsey/32/3540_2.png) [@JSey](https://meta.discourse.org/u/JSey)
#### Post date: [2019年二月9日 14:24 UTC](https://meta.discourse.org/t/emoji-upload-fails-regression/108746/1 "2019-02-09T14:24:58Z")

</div>

Hi all,

I tried to upload a larger patch of emoji into my instance. At first, everything worked fine. Then, I increased the number of files I can upload to 20, and started dropping emoji onto the customize page. I had a few errors here and there, but after an upload of around 120 images, no further upload was possible. Plus, the emoji picker did only show 3.

Deleting all emoji made things worse: now I cannot upload a single emoji, symptoms like this:

[https://global.discourse-cdn.com/meta/original/3X/e/8/e85f33533e69ae47d1e7e44852d732668eaaaa29.mp4](https://global.discourse-cdn.com/meta/original/3X/e/8/e85f33533e69ae47d1e7e44852d732668eaaaa29.mp4)

Can this be a regression of [this](https://meta.discourse.org/t/upload-of-custom-emojis-fails/40618)? Or another problem? I even tried rebuilding the whole container to no avail.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2019年二月10日 01:55 UTC](https://meta.discourse.org/t/emoji-upload-fails-regression/108746/2 "2019-02-10T01:55:56Z")

</div>

any ideas @zogstrip?

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2019年二月11日 13:47 UTC](https://meta.discourse.org/t/emoji-upload-fails-regression/108746/3 "2019-02-11T13:47:02Z")

</div>

Any chances you could invite me (`regis.hanol@discourse.org`) as admin on your instance so that I can have a look 🔍 ?

---

<div class="post-metadata">

### Author: ![JSey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jsey/32/3540_2.png) [@JSey](https://meta.discourse.org/u/JSey)
#### Post date: [2019年二月12日 21:02 UTC](https://meta.discourse.org/t/emoji-upload-fails-regression/108746/4 "2019-02-12T21:02:23Z")

</div>

Sent you that email… Funny, I was able to upload around 60 emoji before it started spitting out error messages again… Any hints would be appreciated.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2019年二月13日 21:09 UTC](https://meta.discourse.org/t/emoji-upload-fails-regression/108746/5 "2019-02-13T21:09:32Z")

</div>

Turned out, if you drag & drop 20 emojis at once, you’ll get rate limited by NGINX pretty soon…

I changed it so that we now upload emojis sequentially 😉

[https://github.com/discourse/discourse/commit/94fe0af900e9f53091f3a2e4fbc8e11fa8ecc7c4](https://github.com/discourse/discourse/commit/94fe0af900e9f53091f3a2e4fbc8e11fa8ecc7c4)

---

<div class="post-metadata">

### Author: ![JSey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jsey/32/3540_2.png) [@JSey](https://meta.discourse.org/u/JSey)
#### Post date: [2019年二月13日 21:17 UTC](https://meta.discourse.org/t/emoji-upload-fails-regression/108746/6 "2019-02-13T21:17:32Z")

</div>

Great, thanks! I will check this out on the next occasion and let you know!

---

<div class="post-metadata">

### Author: ![JSey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jsey/32/3540_2.png) [@JSey](https://meta.discourse.org/u/JSey)
#### Post date: [2019年二月14日 11:55 UTC](https://meta.discourse.org/t/emoji-upload-fails-regression/108746/7 "2019-02-14T11:55:16Z")

</div>

Hm. Looks better now, I was able to upload most of them in batches of 10-15 each. But now it coughs up the same error. Nginx logs show an error 400:

```plaintext
[14/Feb/2019:11:49:51 +0000] "www.mysite.tld" 46.5.158.250 "POST /admin/customize/emojis.json?client_id=…3a4432c24effb&authenticity_token=…Bgz73aiLveyLUDkslPywsIKzrqb40O7Rul7h1iNAb6HVfjqO7wv1tVSiJnT4nL8wtBtvMvQ%3D%3D HTTP/2.0"
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.3 Safari/605.1.15" "-" 400 229 "https://www.mysite.tld/admin/customize/emojis" - 0.000 "-"
```

(did not even know that there was an error 400…)

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [2019年二月14日 15:40 UTC](https://meta.discourse.org/t/emoji-upload-fails-regression/108746/8 "2019-02-14T15:40:16Z")

</div>

Did you update discourse to pull in the changes? Are you on tests-passed?

---

<div class="post-metadata">

### Author: ![JSey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jsey/32/3540_2.png) [@JSey](https://meta.discourse.org/u/JSey)
#### Post date: [2019年二月14日 17:58 UTC](https://meta.discourse.org/t/emoji-upload-fails-regression/108746/9 "2019-02-14T17:58:58Z")

</div>

Yeah, I’m on tests-passed, missing only todays commits:

> **[Comparing 39522659a6fd7225d89f5a0bb81116ecc04100c2...tests-passed ·...](https://github.com/discourse/discourse/compare/39522659a6fd7225d89f5a0bb81116ecc04100c2...tests-passed)**
>
> A platform for community discussion. Free, open, simple. - Comparing 39522659a6fd7225d89f5a0bb81116ecc04100c2...tests-passed · discourse/discourse

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2019年六月7日 21:09 UTC](https://meta.discourse.org/t/emoji-upload-fails-regression/108746/11 "2019-06-07T21:09:43Z")

</div>

@daniel can you try to reproduce?

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2020年五月20日 15:11 UTC](https://meta.discourse.org/t/emoji-upload-fails-regression/108746/14 "2020-05-20T15:11:32Z")

</div>

@dan 你能否在列表中尝试复现此问题？如果无法复现，请关闭此话题。

---

<div class="post-metadata">

### Author: ![dan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dan/32/101549_2.png) [@dan](https://meta.discourse.org/u/dan)
#### Post date: [2020年五月29日 11:26 UTC](https://meta.discourse.org/t/emoji-upload-fails-regression/108746/15 "2020-05-29T11:26:31Z")

</div>

我成功上传了表情符号，没有任何问题。此 Bug 已无法复现。

---

<div class="post-metadata">

### Author: ![dan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dan/32/101549_2.png) [@dan](https://meta.discourse.org/u/dan)
#### Post date: [2020年五月29日 11:26 UTC](https://meta.discourse.org/t/emoji-upload-fails-regression/108746/16 "2020-05-29T11:26:38Z")

</div>


