Connection reset by peer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Facebook Friends Graph |
Medium
|
Kamran Riaz Khan |
Bug Description
I can't get through my friends list (not even 15%) because everytime a connection reset by peer error occurs. This probably isn't the program's fault, but it would be nice if it would catch the error and retry or something.
tom@laptop-
/home/tom/
import md5
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "fbfriendsgraph
iconnections = self.fb.
File "<string>", line 6, in areFriends
File "/home/
return self._client(
File "/home/
response = urlread(
File "/home/
res = urllib2.
File "/usr/lib/
return _opener.open(url, data, timeout)
File "/usr/lib/
response = self._open(req, data)
File "/usr/lib/
'_open', req)
File "/usr/lib/
result = func(*args)
File "/usr/lib/
return self.do_
File "/usr/lib/
raise URLError(err)
URLError: <urlopen error [Errno 104] Connection reset by peer>
Related branches
- Kamran Riaz Khan: Approve on 2010-02-21
-
Diff: 63 lines (+30/-2)1 file modifiedfbfriendsgraph.py (+30/-2)
Kamran Riaz Khan (inspirated) wrote : | #1 |
tomribbens (tom-ribbens) wrote : | #2 |
I have only been able to try with another account with 9 friends, and that worked without problems. My account is much bigger though, with 700+ friends, and it fails at various stages. One time now, i've seen it go up to 75% to fail then.
Kamran Riaz Khan (inspirated) wrote : | #3 |
Rev 5 in the testing branch tries to catch all exceptions and retry API calls. Please check it out and report if the issue is resolved.
Changed in fbfriendsgraph: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Kamran Riaz Khan (inspirated) |
tomribbens (tom-ribbens) wrote : | #4 |
I got through the complete data collection. I have seen UID being mentioned multiple times in a row, so I guess that were the instances where I earlier got an error.
It is currently still generating the graph. It takes a long time, but I guess that's normal.
Changed in fbfriendsgraph: | |
status: | In Progress → Fix Committed |
Kamran Riaz Khan (inspirated) wrote : | #5 |
With 700+ friends tom, I wouldn't be surprised if it takes half a day to generate the graph. I only have 300 something and it takes roughly 10-15 minutes for generation and then a further couple of minutes for loading the graph in an image viewer.
My apologies if it lets you down but you would need some *really* mammoth hardware specs to make something out of this application with such a colossal friend count :) .
tomribbens (tom-ribbens) wrote : | #6 |
I know it's an exponential function of time as more friends are added. There is a java based applet that generates something like this, but interactive. It's unusable long before i get up to 700 friends.
The Nexus app i mentioned in a question managed to generate a graph for me in a matter of minutes, gathering data and all. Don't know what specs that server had though. That was a really sweet app, too bad the author no longer hosts it.
Changed in fbfriendsgraph: | |
status: | Fix Committed → Fix Released |
Do you encounter the same error if you try someone else's account in the application?