Error running Python Scrip to download surveys results | XM Community
Skip to main content

, I am trying to implement a Python scrip to download surveys results from Qualtrics, this scrip is suggested by Qualtrics as a resource we can use in combination with Qualtrics API, I already has API active on my account. The problem I am facing is that after execute the scrip, I am getting this error:
 
ConnectionError: HTTPSConnectionPool(host='sjc1.qualtrics.com', port=443): Max retries exceeded with url: /API/v3/surveys/SV_ctMa8njdl3Wn3Q9/export-responses/ (Caused by NewConnectionError(': Failed to establish a new connection: WinError 10061] No connection could be made because the target machine actively refused it',))

Any idea what I can do?
Thanks in advance.

Hi overgara,
How many times are you calling the API? That error looks like you're exceeding the rate limit, and that endpoint in particular has less than the usual 3000 requests per minute.
You should only need to call that endpoint once. If you get a HTTP 200 code in response, you can use a separate endpoint to start checking the progress of the export before downloading it. This article details the correct process.
Good luck!


Hello. I am doing that one time, however, I will review the documentation you send and sharing the results. Thanks a lot.


Leave a Reply