maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   witter - a python twitter client (https://talk.maemo.org/showthread.php?t=35596)

dwould 2010-08-24 08:38

Re: witter - a python twitter client
 
Quote:

Originally Posted by hotzigetty (Post 796492)
gestures disabled

running tasks: 1
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
self.run()
File "/usr/lib/python2.5/threading.py", line 446, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/user/src/witter/fremantle/src/opt/witter/witter/refresh_thread.py", line 41, in _start
File "/opt/witter/witter.py", line 907, in getTweetsWrapper
self.activeAccount.getTweets(auto=autoval, older=get_older, get_count=more)
File "/home/user/src/witter/fremantle/src/opt/witter/account/account.py", line 263, in getTweets
File "/home/user/src/witter/fremantle/src/opt/witter/twitter.py", line 1471, in GetFriendsTimeline
return [Status.NewFromJsonDict(x) for x in data]
File "/home/user/src/witter/fremantle/src/opt/witter/twitter.py", line 421, in NewFromJsonDict
if 'user' in data:
TypeError: argument of type 'NoneType' is not iterable

hey. Witter fails to load the timeline.

does it do this everytime? I think the implication is just that Twitter responded with an empty response, that code hasn't really changed, so I'm hoping that was just a rare instance of twitter fail.
I guess I can add code to try to guard against it.
But probably not for a couple of weeks now.

hotzigetty 2010-08-24 09:06

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 796625)
does it do this everytime? I think the implication is just that Twitter responded with an empty response, that code hasn't really changed, so I'm hoping that was just a rare instance of twitter fail.
I guess I can add code to try to guard against it.
But probably not for a couple of weeks now.

Yup happens all the time now. Any workaround from my end??
Btw, besto with the wedding! :D Been going to too many of late!!

dwould 2010-08-24 09:55

Re: witter - a python twitter client
 
Quote:

Originally Posted by hotzigetty (Post 796637)
Yup happens all the time now. Any workaround from my end??


hmm, not sure how you could work around it if it's wha tit looks like. there must be more to it, since it seems like twitter is just not responding with valid content. presumably other clients are fine though. do you have oauth configured? I know they're switching off basic auth support sometime soon, though I assume that will just cause access denied type probs.

does a manual refresh of the timeline work?
Quote:

Originally Posted by hotzigetty (Post 796637)
Btw, besto with the wedding! :D Been going to too many of late!!

Thanks, probably should get on with writing lists and making sure I don't forget anything

dwould 2010-08-24 11:03

Re: witter - a python twitter client
 
Quote:

Originally Posted by hotzigetty (Post 796637)
Yup happens all the time now. Any workaround from my end??
Btw, besto with the wedding! :D Been going to too many of late!!

FYI I just saw the exact same error happen to me, but i twas transitory, a minute later refreshed again just fine.
of course this only has to happen once to the background refresh thread to blow it for the whole session. I think it's twitter having problems.

hotzigetty 2010-08-24 12:41

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 796675)
hmm, not sure how you could work around it if it's wha tit looks like. there must be more to it, since it seems like twitter is just not responding with valid content. presumably other clients are fine though. do you have oauth configured? I know they're switching off basic auth support sometime soon, though I assume that will just cause access denied type probs.

does a manual refresh of the timeline work?

Nope. Hasn't been working. I do have oauth configured. Figure Basic Auth is being experimentally turned off an on coz tweego isn't working either. Kept trying over WiFi and GPRS. No luck.

Quote:

Thanks, probably should get on with writing lists and making sure I don't forget anything
Hehe.. :)

ofels 2010-08-24 19:37

Re: witter - a python twitter client
 
Quote:

Originally Posted by hotzigetty (Post 796824)
Nope. Hasn't been working. I do have oauth configured. Figure Basic Auth is being experimentally turned off an on coz tweego isn't working either. Kept trying over WiFi and GPRS. No luck.


Pretty much the same here. No luck till now trying to fix it.

dwould 2010-08-24 19:54

Re: witter - a python twitter client
 
Quote:

Originally Posted by ofels (Post 797140)
Pretty much the same here. No luck till now trying to fix it.

it seems this is a twitter problem, doing a search on twitterAPI I see a bunch of other clients complaining about the same thing.
Twitter say that they have a fix, not sure when they'll roll it out. But hopefully soon.

Uxi 2010-08-25 02:08

Re: witter - a python twitter client
 
Keep losing my Oauth, so I'm showing up as "API" again. Twitter is going to disable non-Oauth pretty soon...

ofels 2010-08-25 09:17

Re: witter - a python twitter client
 
Quote:

Originally Posted by dwould (Post 797154)
it seems this is a twitter problem, doing a search on twitterAPI I see a bunch of other clients complaining about the same thing.
Twitter say that they have a fix, not sure when they'll roll it out. But hopefully soon.

Interesting thing is that this issue is selective. It occurs with one of my two accounts only. Witter seems to load the DMs and mentions (as it notifies me about this) but does not show anything.
Pretty strange.

hotzigetty 2010-08-25 11:23

Re: witter - a python twitter client
 
Yup. DM & Mentions load, but timeline doesn't. The error message is something like "error retrieving tweet, (8, EOF in violation of something)"... damned if I know what.. Should I do a cleanup and try?


All times are GMT. The time now is 05:01.

vBulletin® Version 3.8.8