Baguage / pyqualtrics

Unofficial python SDK for Qualtrics API
Apache License 2.0
33 stars 7 forks source link

Proper error handling for 403 HTTP code #20

Closed Baguage closed 8 years ago

Baguage commented 8 years ago

Apparently something has changed in the Qualtrics API and I get 403 status_code from time to time, and currently library raise RuntimeError in this case ("not a JSON response).

Example response:

Access Denied

Access Denied

You don't have permission to access "http://survey.qualtrics.com/WRAPI/ControlPanel/api.php?" on this server.

Reference #18.df200e6b.1469805851.25335e1

Baguage commented 8 years ago

I suspect it has something to do with API URL: nd.qualtrics.com should be used instead of https://survey.qualtrics.com/WRAPI/ControlPanel/api.php

Baguage commented 8 years ago

well, apparently only importPanel function is broken

Baguage commented 8 years ago

From Qualtrics support: Good news. The issue has been fully cleared up by our engineering team and you should no longer get the permission errors.