You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Kourge (Jira)" <ji...@apache.org> on 2020/11/10 14:43:00 UTC

[jira] [Commented] (NIFI-7716) Received error HTTP_ERROR: HTTP/1.1 420 Enhance Your Calm. Will attempt to reconnect

    [ https://issues.apache.org/jira/browse/NIFI-7716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17229264#comment-17229264 ] 

Kourge commented on NIFI-7716:
------------------------------

Hi [~V1ncent24],

Are you sure that the same Twitter Consumer Key/Secret and Access Token/Secret are not used by another GetTwitter processor or by another application?
In my experience the "420 Enhance Your Calm" exception often occurs when the very same Twitter API credentials are used simultaneously.

> Received error HTTP_ERROR: HTTP/1.1 420 Enhance Your Calm. Will attempt to reconnect
> ------------------------------------------------------------------------------------
>
>                 Key: NIFI-7716
>                 URL: https://issues.apache.org/jira/browse/NIFI-7716
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: NiFi Stateless
>    Affects Versions: 1.11.3
>         Environment: Nifi  on AWS EC2 instance
>            Reporter: Vincent Naveen
>            Priority: Critical
>         Attachments: ErrorOnGetTwitter.JPG
>
>
> We are using python script in the "ExecuteStreamCommand" processor which takes the Twitter user from the database from the incoming flow file generated by the "QueryTableRecord" process. We are able to successfully stop the processor and update the IDs_To_Follow via parameter context in GetTwitter processor and to start the GetTwitter processor.The issue is once the GetTwitter processor starts, it is throwing the error as below,Received error HTTP_ERROR: HTTP/1.1 420 Enhance Your Calm. Will attempt to reconnect
> Received error STOPPED_BY_ERROR: Retries exhausted due to null. Will not attempt to reconnect
> 12:42:46 ISTERRORbe2a0f28-0173-1000-0bbc-4401fbf6d330We came to know that, wait time needs to be added whenever doing the REST Api calls and which we have implemented but still we are getting the same issue. We changed the Max Client Retry count to 50 as well. Still the issue is not fixed.While browsing the below link, we have to do something in the java coding languague but we are using python script in the ExecuteStreamCommand. https://issues.apache.org/jira/browse/NIFI-5953
> [https://github.com/apache/nifi/pull/3276]
> Could you please help us here, how we need to handle this scenario. Thanks in Advance!
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)