python-twitter-tools / twitter

Python Twitter API
http://mike.verdone.ca/twitter/
MIT License
3.19k stars 714 forks source link

New but continuing Json error - "ValueError: Unterminated string starting at:..." #256

Open kelley8732 opened 10 years ago

kelley8732 commented 10 years ago

Hi,

Great program. It has been a real saver at times. I have been running it successfully for around 2 months in combination with some other tools that fit my needs.

2 weeks ago I started to get json errors. Am I the only one?

Here is an example of the error:

Traceback (most recent call last): File "/home/k/projects/Tweeter.py", line 548, in runengine_for_full_retweets() File "/home/k/projects/Tweeter.py", line 161, in runengine_for_full_retweets twittersearch = t.statuses.user_timeline(screen_name=i) ## i becomes variable for entire return of timeline tweets## File "/usr/local/lib/python3.2/dist-packages/twitter/api.py", line 245, in call return self._handle_response(req, uri, arg_data, _timeout) File "/usr/local/lib/python3.2/dist-packages/twitter/api.py", line 267, in _handle_response res = json.loads(data.decode('utf8')) File "/usr/lib/python3.2/json/init.py", line 309, in loads return _default_decoder.decode(s) File "/usr/lib/python3.2/json/decoder.py", line 353, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.2/json/decoder.py", line 369, in raw_decode obj, end = self.scan_once(s, idx) ValueError: Unterminated string starting at: line 1 column 35495 (char 35495)


I am new to the language and even newer to github. Any help at all would be greatly appreciated.

maelfosso commented 9 years ago

I also have the same error when searching tweet

How to solve it please ?

hugovk commented 9 years ago

Duplicates? https://github.com/sixohsix/twitter/issues/256 https://github.com/sixohsix/twitter/issues/266 https://github.com/sixohsix/twitter/issues/271