carpedm20 / carpedm20/LINE

cant log in with auth token

Open
#119 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
827
Forks
189
PR merge metrics
No merged PRs in 30d

Description

jin@jins-pc:~/LINE$ python
Python 2.7.13 (default, Jan 19 2017, 14:48:08)
[GCC 6.3.0 20170118] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from line import LineClient, LineGroup, LineContact, LineRoom, LineMessage, LineBase
>>> client = LineClient("blah@gmail.com", "password", com_name="Blah", is_mac=False)
Enter PinCode '9609' to your mobile phone in 2 minutes
>>> authToken = client.authToken
>>> print authToken
EhRAc4R0G4okTvDNhIsa.cNJK/hGTeYoWLIw3l3YrkG.JLJtGDnWuR/ORu/VrcCAq9KdIb5Tjb9ZtCRq7ZhZFdt=
>>> client.updateAuthToken()
True
>>> print client.authToken
EhmgIMcAavJS6oN0mzOa.cNJK/hGTeYoWLIw3l3YrkG.k5vfgHMjMYRLTpMSrT5+S67ohqilY8/jmPAQw2tsVo4=
>>> client = LineClient(authToken=EhmgIMcAavJS6oN0mzOa.cNJK/hGTeYoWLIw3l3YrkG.k5vfgHMjMYRLTpMSrT5+S67ohqilY8/jmPAQw2tsVo4=)
File "", line 1
client = LineClient(authToken=EhmgIMcAavJS6oN0mzOa.cNJK/hGTeYoWLIw3l3YrkG.k5vfgHMjMYRLTpMSrT5+S67ohqilY8/jmPAQw2tsVo4=)
^
SyntaxError: invalid syntax
>>> client = LineClient(authToken='EhmgIMcAavJS6oN0mzOa.cNJK/hGTeYoWLIw3l3YrkG.k5vfgHMjMYRLTpMSrT5+S67ohqilY8/jmPAQw2tsVo4=')
Traceback (most recent call last):
File "", line 1, in
File "line/client.py", line 97, in __init__
self.revision = self._getLastOpRevision()
File "line/api.py", line 328, in _getLastOpRevision
return self._client.getLastOpRevision()
File "/home/jin/.local/lib/python2.7/site-packages/curve/CurveThrift.py", line 512, in getLastOpRevision
return self.recv_getLastOpRevision()
File "/home/jin/.local/lib/python2.7/site-packages/curve/CurveThrift.py", line 534, in recv_getLastOpRevision
raise result.e
curve.ttypes.TalkException: TalkException(parameterMap=None, reason='Authentication Failed.', code=1)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.