JSey
(Joe Seyfried)
2019 年2 月 9 日 14:24
1
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:
Can this be a regression of this ? Or another problem? I even tried rebuilding the whole container to no avail.
2 个赞
zogstrip
(Régis Hanol)
2019 年2 月 11 日 13:47
3
Any chances you could invite me (regis.hanol@discourse.org
) as admin on your instance so that I can have a look ?
5 个赞
JSey
(Joe Seyfried)
2019 年2 月 12 日 21:02
4
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.
1 个赞
zogstrip
(Régis Hanol)
2019 年2 月 13 日 21:09
5
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
5 个赞
JSey
(Joe Seyfried)
2019 年2 月 13 日 21:17
6
Great, thanks! I will check this out on the next occasion and let you know!
JSey
(Joe Seyfried)
2019 年2 月 14 日 11:55
7
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:
[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…)
Stephen
(Stephen)
2019 年2 月 14 日 15:40
8
Did you update discourse to pull in the changes? Are you on tests-passed?
1 个赞
JSey
(Joe Seyfried)
2019 年2 月 14 日 17:58
9
zogstrip
(Régis Hanol)
2019 年6 月 7 日 21:09
11
@daniel can you try to reproduce?
2 个赞
zogstrip
(Régis Hanol)
2020 年5 月 20 日 15:11
14
@dan can you add to your list to try to reproduce this issue and close this topic if you can’t anymore?
1 个赞
dan
(Dan Ungureanu)
2020 年5 月 29 日 11:26
15
I managed to upload emojis without any problem. This bug is no longer reproducible.
4 个赞