【问题标题】:Twitter connector on Mule StudioMule Studio 上的 Twitter 连接器
【发布时间】:2015-06-04 17:40:37
【问题描述】:

我正在尝试使用 mule 应用程序发送推文,但我收到了错误的凭据错误

root Exception stack trace:
org.mule.api.ConnectionException: Bad credentials
    at org.mule.twitter.TwitterConnector.connect(TwitterConnector.java:165)
    at org.mule.twitter.connectivity.TwitterConnectorConnectionFactory.makeObject(TwitterConnectorConnectionFactory.java:57)
    at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1220)
    + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything)

它有 4 个密钥 accessKey ,accesSecret,consumerKey 和 consumerSecret ,consumerKey 和 consumerSecret 在创建 twitter 应用程序时给出,但是对于 accessKey 和 access secret,我使用了我用于登录 twitter 的电子邮件和密码,是不是错了?

【问题讨论】:

  • 我相信 accessKey 和 accessSecret 是在给定用户授予应用程序授权时生成的,您可以在创建 Twitter 应用程序后通过创建“访问令牌”来获取它们。
  • 我有同样的问题,我的凭据完全没问题,但这似乎与 twitter4j 没有考虑我的代理设置有关。你是代理吗?

标签: twitter mule


【解决方案1】:

当您创建 Twitter 应用程序时,请删除回调 url 详细信息。这可能会导致错误的凭据问题。

另外,当您创建令牌时,请注意在没有空格的情况下在 mule 中提供它

【讨论】:

    猜你喜欢
    • 2015-08-29
    • 2017-08-23
    • 2015-10-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多