2 Replies Latest reply on Jul 20, 2016 3:07 PM by Prashant Srivastava

    REST API error - requests.exceptions.ConnectionError: ('Connection aborted.', error(104, 'Connection reset by peer'))

    Prashant Srivastava

      I am trying to publish the workbook using REST API by Python

       

      server_response = requests.post(url, data=payload,

         headers={'x-tableau-auth': TABLEAU_TOKEN, 'content-type': content_type})

       

      Some workbooks publish successfully which means my code is correct but some workbooks give this exception on requests.post -

      requests.exceptions.ConnectionError: ('Connection aborted.', error(104, 'Connection reset by peer'))

       

      These errors started coming only during the last month. Strangely, errors come only when the script runs on the Linux server. When i run locally on windows machine, there is no error.

       

      If anyone has seen/dealt/knows this error, please advise!!

       

      Thanks in advance!