Please help us help you and fill where relevant:
Your LimeSurvey version: 6.6.1
Own server or LimeSurvey hosting: Own Server
Survey theme/template: Fruity TwentyThree
=================
I'm running a Django application on PythonAnywhere, and I'm trying to access the LimeSurvey RemoteControl API to retrieve survey responses. I’ve written a Python script that sends a POST request to the LimeSurvey API endpoint to get a session key and later fetch survey responses.
However, when I run the script as a function within a Django View on PythonAnywhere, I encounter the following error:
```
requests.exceptions.ProxyError: HTTPSConnectionPool(host='siddharthhemnani-ad2b.limesurvey.net', port=443): Max retries exceeded with url: /admin/remotecontrol (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))
```
It appears that PythonAnywhere blocks certain outbound internet access, which might be causing this issue.
What I’ve Tried:
- Running the script locally (it works fine on my local machine).
- Disabling SSL verification with `verify=False` in the `requests` call.
What I Need Help With:
I requested for this endpoint
prelead-admin.limesurvey.net/admin/remotecontrol
to be added to the list of allowed endpoints at PythonAnywhere support but they said it can not be done because of security reasons. However if it is cleared that there are no security issues then they would add this endpoint.
Any guidance or suggestions would be greatly appreciated!