carpedm20 / carpedm20/LINE

simplejson.scanner.JSONDecodeError

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

Description

hello
i used of your API
but then i write
```
$ pip install line --upgrade
$ python
>>> from line import LineClient, LineGroup, LineContact
>>> client = LineClient("myID", "myPASSWORD")
```
then i pressed Enter Key
i received this Error:
```
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/line/client.py", line 88, in __init__
self.login()
File "/usr/local/lib/python2.7/dist-packages/line/api.py", line 88, in login
j = self._get_json(self.LINE_SESSION_NAVER_URL)
File "/usr/local/lib/python2.7/dist-packages/line/api.py", line 335, in _get_json
def post_content(self, url, data=None, files=None):
File "/usr/lib/python2.7/dist-packages/simplejson/__init__.py", line 516, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 374, in decode
obj, end = self.raw_decode(s)
File "/usr/lib/python2.7/dist-packages/simplejson/decoder.py", line 404, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
```

why???
please help me

i tested on ubuntu 16 and kali 2

thank you

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the login path in line/client.py and line/api.py, especially login and _get_json, then run the reported Python 2.7 reproduction. Trace the response passed to simplejson.loads and establish a clear diagnosis or corrected handling, with a regression test if the repository has an applicable test location.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.