我这里遇到一个问题,就是我用我自己的微博帐号登陆用JAVA语言可以成功发布微博;但是在传参的时候传入别人的微博帐号和密码,就无法发送微博报如下错误。
请问这是什么原因?
- Java code
weibo4j.WeiboException: 400:The request was invalid. An accompanying error message will explain why. This is the status code will be returned during rate limiting.{"request":"/statuses/update.json","error_code":"400","error":"40025:Error: repeated weibo text!"} at weibo4j.http.HttpClient.httpRequest(HttpClient.java:669) at weibo4j.http.HttpClient.httpRequest(HttpClient.java:611) at weibo4j.http.HttpClient.post(HttpClient.java:435) at weibo4j.Weibo.updateStatus(Weibo.java:1277) at weibo4j.examples.UpdateStatus.main(UpdateStatus.java:17)
------解决方案--------------------
{"request":"/statuses/update.json","error_code":"400","error":"40025:Error: repeated weibo text!"}
写的很清楚了,repeated weibo text,重复的微博文字。
下面是官方文档的说明:
为防止重复提交,当用户发布的微博消息与上次成功发布的微博消息内容一样时,将返回400错误,给出错误提示:“40025:Error: repeated weibo text!“。