为什么Twitter OAuth拒绝带有消息“quot”的请求令牌请求;给定的URL被视为恶意软件;?

为什么Twitter OAuth拒绝带有消息“quot”的请求令牌请求;给定的URL被视为恶意软件;?,twitter,oauth,twitter4j,Twitter,Oauth,Twitter4j,我使用的是Twitter4J,当我请求OAuth请求令牌时,会抛出一个异常,并显示以下消息: 401:Authentication credentials (https://dev.twitter.com/pages/auth) were missing or incorrect. Ensure that you have set valid consumer key/secret, access token/secret, and the system clock is in sync. &

我使用的是Twitter4J,当我请求OAuth请求令牌时,会抛出一个异常,并显示以下消息:

401:Authentication credentials (https://dev.twitter.com/pages/auth) were missing or incorrect. Ensure that you have set valid consumer key/secret, access token/secret, and the system clock is in sync.

<?xml version="1.0" encoding="UTF-8"?>
<hash>
  <error>The given URL is considered malware</error>
  <request>/oauth/request_token</request>
</hash>

Relevant discussions can be found on the Internet at:
    http://www.google.co.jp/search?q=8e063946 or
    http://www.google.co.jp/search?q=ef59cf90
TwitterException{exceptionCode=[8e063946-ef59cf90], statusCode=401, message=null, code=-1, retryAfter=-1, rateLimitStatus=null, version=4.0.1}
401:身份验证凭据(https://dev.twitter.com/pages/auth)丢失或不正确。确保已设置有效的使用者密钥/密码、访问令牌/密码,并且系统时钟同步。
给定的URL被视为恶意软件
/oauth/request\u令牌
有关讨论可在互联网上找到,网址为:
http://www.google.co.jp/search?q=8e063946 或
http://www.google.co.jp/search?q=ef59cf90
TwitterException{exceptionCode=[8e063946-ef59cf90],状态代码=401,消息=null,代码=-1,retryAfter=-1,rateLimitStatus=null,版本=4.0.1}
这个问题似乎很相关,但它以“不是真正的问题”而结束,而公认的答案,即我的第三方应用程序被标记为恶意软件,不适用于我的案件。(我有其他web应用程序,允许用户授权相同的第三方应用程序(相同的消费者密钥/密码)访问其数据,而不会出现此错误。)

我唯一能想到的是,我在令牌请求中包含的回调URL是
http://localhost:8084/authorize/complete/twitter
,我以前从未使用过该回调URL。但我的搜索没有显示对在回调URL中使用localhost或任何特定端口的限制,并且我在第三方应用程序的回调URL设置中有一个占位符(即,应用程序不受使用回调的限制)


导致此错误的原因是什么?如何解决此错误?

正如我在对问题的评论中所述,原因是我在请求中提供的回调URL中有一个输入错误。我提供的URL是

http://localhost::8084/authorize/complete/twitter

端口前意外出现第二个冒号。我的错

呃,我把我的请求代码添加到问题中,我意识到我提供的是回调URL
http://localhost::8084/authorize/complete/twitter
--请注意端口前多余的第二个冒号。删除它解决了这个问题。如果有人知道为什么这种格式错误的URL会被解读为可能的恶意软件,我很想知道。