Hi, I have developed a Web app, there is a communication between Dropbox and the App through Dropbox API's.
FYI, My url = http://sansoftaus.pythonanywhere.com url where I get the error = http://sansoftaus.pythonanywhere.com/Submitted_Code
On my local PC setup I find no problems, but on Pythonanywhere, I get the following error:-
Environment:
Request Method: GET Request URL: http://sansoftaus.pythonanywhere.com/Submitted_Code/
Django Version: 1.3.7 Python Version: 2.7.4 Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')
Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "/home/sansoftaus/Remote_Software/Development/views.py" in Submitted_code
38. dropbox_request_token = dropbox_sess.obtain_request_token()
File "/usr/local/lib/python2.7/dist-packages/dropbox/session.py" in obtain_request_token
181. response = self.rest_client.POST(url, headers=headers, params=params, raw_response=True)
File "/usr/local/lib/python2.7/dist-packages/dropbox/rest.py" in POST
260. return cls.IMPL.POST(*n, **kw)
File "/usr/local/lib/python2.7/dist-packages/dropbox/rest.py" in POST
207. post_params=params, headers=headers, raw_response=raw_response)
File "/usr/local/lib/python2.7/dist-packages/dropbox/rest.py" in request
177. raise RESTSocketError(host, e)
Exception Type: RESTSocketError at /Submitted_Code/
Exception Value: Error connecting to "api.dropbox.com": [Errno 111] Connection refused
Kindly help me in solving the above problem...
Thanks, San
edited by admin for formatting