LINE icon indicating copy to clipboard operation
LINE copied to clipboard

got annoying eror :(

Open Nabouste opened this issue 8 years ago • 2 comments

Traceback (most recent call last): File "", line 1, in File "C:\Python27\lib\site-packages\line\client.py", line 88, in init self.login() File "C:\Python27\lib\site-packages\line\api.py", line 88, in login j = self._get_json(self.LINE_SESSION_LINE_URL) File "C:\Python27\lib\site-packages\line\api.py", line 335, in _get_json return json.loads(self._session.get(url, headers=self.headers).text) File "C:\Python27\lib\json_init.py", line 339, in loads return _default_decoder.decode(s) File "C:\Python27\lib\json\decoder.py", line 364, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Python27\lib\json\decoder.py", line 382, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded

ive see and change and follow the instruction in https://github.com/carpedm20/LINE/issues/92 but nothing's change and still got an error

Appreciate someone's help.

Nabouste avatar Jun 12 '17 05:06 Nabouste

Why took rsakey use SESSION URL? its took 0.5s to take the rsakey Why u didnt use the existing function on the TalkService.do?

this might hint you: i was found this on LINE ANDROID Thrift client info: IdentityProvider.LINE = 1 IdentityProvider.UNKNOWN = 0 IdentityProvider.NAVER_KR = 2

RSA = LineAndroid.getRSAKeyInfo(1) message = (chr(len(RSA.sessionKey)) + RSA.sessionKey + chr(len(mail)) + mail + chr(len(passwd)) + passwd).encode('utf-8') pub_key = rsa.PublicKey(int(RSA.nvalue, 16), int(RSA.evalue, 16)) crypto = rsa.encrypt(message, pub_key).encode('hex') result = LineAndroid.loginWithIdentityCredentialForCertificate(1,rsakey.keynm, crypto,True,'127.0.0.1','Anysz',cert)

ii64 avatar Jun 20 '17 11:06 ii64

@Nabouste The error you are seeing means that the Line Client is receiving an empty response from the API. There are several reasons that this could happen. Issue #92 addresses one reason. If you have already made the changes suggested in that issue, you may be running into another cause. Please post the relevant code so we can see what's happening. Also, please post the output from thrift --version.

Nilpo avatar Jun 26 '17 21:06 Nilpo