HoneyMoose
  • 首页
  • Java
  • Jersey
  • Jira
  • Confluence
  • U.S.
    • USRealEstate
    • U.S. Travel
    • H1B
  • 项目和网站
    • CWIKI.US
    • OSSEZ 社区
    • WIKI.OSSEZ.COM
    • BUG.OSSEZ.COM
    • RSS.OSSEZ.COM
BLOG.OSSEZ.COM
A responsive blog theme focused om user reading experience
  1. Home
  2. Computer Science
  3. This article

Discourse 使用 API 进行数据恢复的时候提示行为 many times 错误

2021年01月17日 253Browse 0Like 0Comments

使用 Discourse API 进行从其他站点导入数据的时候,如果你是站点管理员或者拥有者的话,在运行 API 一段时间后,你的调用可能会返回错误:

2021-01-16 08:34:30.871 DEBUG   --- [           main] com.ossez.edtestbank.tests.PostTest      : >>>{"errors":["You’ve performed this action too many times. Please wait a few seconds before trying again."],"error_type":"rate_limit","extras":{"wait_seconds":1}}

 

rate_limit

 

这是因为 API 有连接和行为限制以保证系统不被恶意攻击。

但是管理员在导入大量数据的时候可能是希望取消这个限制的。

其实你是可以在控制台中设置,并且取消的。

解决办法

访问 Discourse 的控制台,然后搜索关键字:Rate Limit

将 rate limit create topic 设置为 0。

这个的意思是用户可以无限制的创建 rate limit create topic。

 

rate_limit-01

 

然后再尝试使用你 API 的调用,这时候应该不会提示上面的错误了。

https://www.ossez.com/t/discourse-api-many-times/4047

Tags: None
Last updated:2021年01月17日

Kratos

stay absorbed stay excellent

Like
< Previous
Next >

Comments

Cancel reply

Newest Hotspots Random
Newest Hotspots Random
网络编程常用的几种字符编码 Java 中的 String Pool 简介 有关 Java 9 的 String Java String 性能和优化 Java String 手工引用指针 Java String 文字(Literal)和 对象(Object)初始化
Jenkins 通过检查代码提交自动触发编译IntelliJ IDEA 2022 年版本中的作者提示Discourse 新用户可插入媒体的数量Discourse 的信任级别Java 使用 char[] Array 还是 String 存储字符串密码Java 字符串引用(String Interning)
撤销 Confluence 7 和伴随应用之间的信任 如何评价2020年4月15日pandownload被执法 Confluence 6 有关用户的备忘 Java 计算 1 到 1,000,000 的和 如何看待中国网民规模破 9 亿,其中七成月收入不足 5000 元,八成学历在专科以下 人人都是自媒体的时代真的有那么容易吗?—— 记公号分享 100 天
Categories
  • Akka
  • Algorithm(算法)
  • AMQP
  • Angular
  • CI
  • Compile And CI
  • Computer Science
  • Confluence
  • DataBase
  • Gradle
  • H1B
  • Hibernate
  • IDE
  • Java
  • Jersey
  • Jira
  • MariaDB
  • PrestaShop
  • Spring
  • Spring Batch
  • U.S.
  • U.S. Travel
  • USRealEstate
  • 我的小厨

COPYRIGHT © 2020 HoneyMoose. ALL RIGHTS RESERVED.

THEME CWIKIUS.CN MADE BY VTROIS