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

StatusCodeError: 504 and TypeError: Cannot read property '0' of undefined #99

Open
gitgiteat opened this issue Aug 2, 2016 · 7 comments

Comments

@gitgiteat
Copy link

May I ask why does it always show something like this?😅

error_pic

@pawsen
Copy link

pawsen commented Aug 10, 2016

I just ran fb-sleep-stats today and I get the same two errors (I assume, it is a bit hard to tell from your screenshot :) )

It seems fb-sleep is complaining, maybe because the return from facebook is not as expected(it returns an error site) or the url used in fbSleep.getBuddyListhas changed?
I get the following two erros

Error getting buddyList. Will fallback to other means of retrieving friends [TypeError: Cannot read property '0' of undefined]
8/10/2016, 11:27:13 PM  - Active users:  11 / 82

and

Error getting buddyList. Will fallback to other means of retrieving friends { [StatusCodeError: 504 - <!DOCTYPE html>
.... raw html ...]}
8/10/2016, 11:20:03 PM  - Active users:  17 / 82

See http://pastebin.com/padHzvJh for the log (I changed xs and c_user).
The first three and the last lines are from stdout, everything else from stderr.

But the program still works; fbSleep uses fallback mode, fbSleep.fetchActiveUsers and fbSleep.getLastActiveTimes, and gets info about some of the users.

Best,
Paw

Btw.
Søren
It is a quite nice and good idea you got.

@destedge
Copy link

Yeah, I'm having the exactly same problem. Sometimes it gives a bunch of error lines but sometimes it gives just '...Will Fallback to other means...' message. It still works but it gets stuck for a while before showing the error lines

@linksilver
Copy link

linksilver commented Aug 19, 2016

up
i have the same problem, nothing work anymore !
something more to add on my todo list :)

@d3vilsn0w
Copy link

Is it fixed yet?

@abukva
Copy link

abukva commented Jan 2, 2017

Hi guys, I kinda resolved this one, you just need to add clientid property in index.js, add clientid after partition parameter in getLoadBalancerInfo line 52 and after that in the function call line 88. You can add in your development.json config file, clientid property and then call it from there. You can find your clientid if you do Inspect at messenger webpage go to Network and search for pull requests. Now there aren't any errors related to the format of the requests but there are sill errors related to the getting user list call.

@leflex
Copy link

leflex commented Feb 14, 2018

@abukva thanks a ton for resolving this - can you please add more detail to your solution for a complete newbie?

@gplv2
Copy link

gplv2 commented Feb 3, 2020

1 problem is also, https://5-edge-chat.facebook.com is hardcoded in the module, but when I tested it, that one didn't work anymore, so I went to nr 4 (check with dev tools). Its in the same spot as abukva's comment

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

No branches or pull requests

8 participants