【问题标题】:Apache nifi getTwitter Processor returning 403 forbiddenApache nifi getTwitter 处理器返回 403 禁止
【发布时间】:2023-01-22 19:17:51
【问题描述】:

我想使用 Apache Nifi 来跟踪实时推文 我正确地粘贴了我的密钥,但所有请求都返回此错误:

19:15:20 UTC ERROR
GetTwitter[id=59b5cb18-017e-1000-a6a2-991a653ec138] Received error HTTP_ERROR: HTTP/1.1 403 Forbidden. Will attempt to reconnect

我不知道问题出在哪里。 谢谢你。

【问题讨论】:

    标签: api twitter apache-nifi


    【解决方案1】:

    403 Forbidden 表示 Twitter API 拒绝您的请求 - 您的访问密钥可能不正确,或者您可能没有访问端点的正确访问权限。

    The request is understood, but it has been refused or access is not allowed. An accompanying error message will explain why.
    
    Check that your developer account includes access to the endpoint you’re trying to use. You may also need to get your App allowlisted (e.g. Engagement API or Ads API) or sign up for access.
    

    来自https://developer.twitter.com/en/support/twitter-api/error-troubleshooting

    请务必遵循 Twitter here 的建议并记下:

    With Essential access, you are only able to make requests to the Twitter API v2 endpoints, and not the v1.1 or enterprise endpoints. You are limited to 500K Tweets/month, and unable to take advantage of certain developer portal functionality such as teams and access to additional App environments
    

    使用 Essential 访问级别可以执行的操作有限制。参见here

    如果这没有帮助 - 请附上您的 GetTwitter 配置和您的 NiFi 版本的屏幕截图。

    【讨论】:

      【解决方案2】:

      如果在 nifi 中使用 GetTwitter 处理器时出现 403 错误。 API Key & consumer key 不仅仅是一个问题。在配置 GetTwitter 处理器时更改 Twitter 端点字段

      过滤端点

      流水端点

      在 twitter 端点领域

      可能这会奏效!

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2013-08-18
        • 2011-05-31
        • 1970-01-01
        相关资源
        最近更新 更多