Terrance/SkPy

Unable to connect Skype API using SkPy module

Closed this issue · 1 comments

Account type

I checked by logging in manually with same skype username and password, and its working properly without any issue and i can do any stuff in this account.
and its logedin through email and password.
Account is live account.

Conversation details

when i tried to connect through SkPy module using simple Skype module then its throwing HTTPSConnections error from today itself. I have checked on Saturday by doing the same, that time its working without any single error.

Steps to reproduce

I have used only this code for skype and its throwing error.

Code:-
from skpy import Skype
import os
import requests

username = "<>@gmail.com"
password = "<>"
try:
SkypeConnect = Skype(username, password, tokenFile=)
#chat = SkypeConnect.contacts["19:5eea2877799e4659854e6fe7b1c6764a@thread.skype"].chat
#new = os.getcwd()
#filePath = new + "/summary.py"
#name = "summary.py"
#chat.sendFile(open(filePath, "rb"), name)
#chat.sendMsg("Hi")
#print(chat.getMsgs())
except Exception as e:
print(e)
print("An exception occurred")

Error :-
HTTPSConnectionPool(host='client-s.gateway.messenger.live.com', port=443): Max retries exceeded with url: /v1/users/ME/endpoints (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))
An exception occurred

I have crossed checked module version also and its latest:-

Processing /home/cavisson/.cache/pip/wheels/f2/9c/85/755135dd0c2b163c5b8fa1a07e45282dc823878fd3d12b4bbb/SkPy-0.10.4-py3-none-any.whl
Requirement already satisfied: beautifulsoup4 in /home/cavisson/.local/lib/python3.8/site-packages (from skpy) (4.10.0)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from skpy) (2.22.0)
Requirement already satisfied: soupsieve>1.2 in /home/cavisson/.local/lib/python3.8/site-packages (from beautifulsoup4->skpy) (2.3.1)
Installing collected packages: skpy
Successfully installed skpy-0.10.4

Result or traceback

You're getting an invalid certificate from Skype's API servers, probably because of a firewall or proxy intercepting the request. Make sure the device you're using is able to connect directly.