Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception with some search results: ValueError: Unterminated string starting at ... #266

Open
AhmedBytesBits opened this issue Nov 21, 2014 · 2 comments

Comments

@AhmedBytesBits
Copy link

Here is the full trace of error

Traceback (most recent call last):
  File "/Users/ahmedrshdy/Documents/Workspace/Python/twitter/modules/ftwitter.py", line 100, in _searchtweets_
    search_results = twitter_api.search.tweets(q=query, count=SEARCH_COUNT, retry=True)
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/twitter/api.py", line 266, in __call__
    return self._handle_response(req, uri, arg_data, _timeout)
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/twitter/api.py", line 290, in _handle_response
    res = json.loads(data.decode('utf8'))
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/json/__init__.py", line 318, in loads
    return _default_decoder.decode(s)
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/json/decoder.py", line 343, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/json/decoder.py", line 359, in raw_decode
    obj, end = self.scan_once(s, idx)
ValueError: Unterminated string starting at: line 1 column 409587 (char 409586)

Obvious it is due to problem with the JSON decoder. I guess this is due to closing bracket in JSON text or similar issue.

@maelfosso
Copy link

I have the same error and also when searching tweets.

@hugovk
Copy link
Member

hugovk commented Dec 4, 2014

Duplicates? #256 #266 #271

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants