Connection aborted

Added by Niklas over 5 years ago

The Python2.7 code below, which is a minor modification of a suggestion by Peter about a month ago, worked untill I reinstalled Windows8.
Now I get an Exception in last line

raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', error(10013, 'Det blev fors\xf8gt at f\xe5 adgang til en socket p\xe5 en m\xe5de, der er forbudt af den p\xe5g\xe6ldende sockets adgangstilladelser'))

The English translation of the error message is "Permission denied. An attempt was made to access a socket in a way forbidden by its access permissions."

Any help on this would be highly appreciated.


-- Python code below

import requests
import json
import time
import base64
from M2Crypto import RSA

username = ...
password = ...
url = ''
pem_key = 'c:\Python27\NEXTAPI_TEST_public.pem'
headers = {"Accept": "application/json"}

timestamp = str(int(round(time.time() * 1000)))
buff = base64.b64encode(username) + ':' + base64.b64encode(password) + \
':' + base64.b64encode(timestamp)
rsa = RSA.load_pub_key(pem_key)
encrypted_hash = rsa.public_encrypt(buff, RSA.pkcs1_padding)
hash_key = base64.b64encode(encrypted_hash)

params = {'service': 'NEXTAPI', 'auth': hash_key}
a = + 'login', data=params, headers=headers)

Replies (1)

RE: Connection aborted - Added by sunh 17 days ago

This is the first time an active forum is about 먹튀검증 It's really informative" related to this forum. 먹튀검증 And 스포츠중계 also seem to be good because they are related. I'm also very interested in 꽁머니 안전놀이터 I plan to write a forum related to 토토사이트 later.Before that, you can first check the related materials on my site. 먹튀검증사이트 yours메이저토토사이트. 메이저안전놀이터 the best. site name is 안전놀이터 happy to 꽁머니 along with 안전놀이터, our site 토토사이트 also has the same information. We ask for your interest in our site as well. This was the above 먹튀검증 time I have a new site about 안전사설토토사이트 have a new site. It was created for a completely new 먹튀검증커뮤니티, so if you want to check out what's new, please visit 공식안전놀이터
가장확실한먹튀검증커뮤니티 .comHello, I really enjoyed reading your post. 먹튀검증 It's very helpful for me. 먹튀신고 Actually, 먹튀 my friend recommended this article. 먹튀검증업체 My friend recommended me 먹튀커뮤니티 to read it 먹튀사이트검증 because it is really good. 먹튀사이트 So I read it, 메이저놀이터 and it was really good. 메이저안전놀이터추천 I think I did a really good job reading it. 메이저놀이터추천 Actually, I'm doing something similar to you. 메이저놀이터 It's not exactly the same, 사설토토 but we have a lot in common. 메이저사설토토 As for what I do, 사설토토사이트추천 I have uploaded 사설토토사이트 a lot of posts on my website. 사설놀이터 If you're interested,안전놀이터 please visit 토토안전놀이터 and read it. 안전놀이터 You won't regret it. 토토사이트 Above all, 토토추천 I'm so glad to 메이저토토사이트 meet someone who is doing something similar. 먹튀없는토토사이트 I hope you will continue to upload good contents like the current post. 토토사이트추천 Thank you. 토토사이트 Have a nice day.