일부 경우 빠른 검색이 입력된 각 문자마다 요청을 보내 403 오류 발생

Reproduction steps:

  1. Open the quick search input while being in a category
  2. Click on the “in this category” option
  3. Type a few letters
  4. There is a search query performed for each character typed with no waiting time, leading to a 403 error

It seems to happen more when unregistered, maybe because of a different rate limit.

search rate limit bug

Notes: It doesn’t happen if you write the #categoryname manually, and after you delete your search query input to perform another search.

4개의 좋아요

The bug is still here, I see all the requests in the network tab, but I haven’t experienced the error message for a while. Were the max requests per second increased for users?

Also, it’s to be noted that while this bug happens on meta.discourse.org and try.discourse.org, it doesn’t happen on my instances.

Perhaps is it related to some setting?

3개의 좋아요

will put a pri-medium on investigating, cause this has potential of driving too much traffic, unnecessarily.

2개의 좋아요

타자 속도에 따라 다릅니다. 충분히 빠르게 입력하면 키스트로크마다 요청이 전송되지 않습니다. 위젯은 400밀리초마다 요청 전송을 디바운스(debounce)하며, 사용자가 이 임계값보다 느리게 입력하는 경우 요청이 전송되지 않습니다. macOS에서 Safari/Firefox/Chrome으로 테스트했으며, 각 브라우저에서 모두 잘 작동했습니다.

다음은 이를 증명하는 것입니다:

CleanShot 2025-03-25 at 09.33.00@2x

"Customization > Theme component data"와 "Customization > Theme component data expl"를 입력하는 사이에 요청이 두 번만 전송되었습니다. 즉, 그 사이의 문자들에 대해서는 요청이 전송되지 않았습니다.

2개의 좋아요