Yakyak: Stuck at connecting...again

Created on 31 Oct 2018  路  84Comments  路  Source: yakyak/yakyak

I updated to the re-release of 1.5.2 last week per #988. I just restarted Windows 10 and I'm back to stuck at connecting. Tried the latest beta build. Just connecting forever again.

Most helpful comment

@DanLauer @belthesar @trenb

Please go to the following file in the YakYak directory

yakyak-linux-x64/resources/app/node_modules/hangupsjs/lib/init.js

And make the change:

ds:20 to ds:19

Under BOTH the self_entity and conv_states.

Make sure to "killall yakyak" on Linux (or kill all YakYak processes on any other system) and it should work fine, until Google changes that again.

All 84 comments

Same. I tried deleting cookies.json, which used to fix the issue, but that didn't work.

Confirming same issue as @DanLauer. Was working this morning. Same thing that happened last week.

I am also experiencing this issue. I opened the app from the binary in a terminal and was able to collect the following info from the console. Are there any other diagnostics or troubleshooting steps I can provide to help debug the issue?

reconnecting 0
resolving proxy http://plus.google.com
resolving proxy https://plus.google.com
resolved proxy DIRECT
resolved proxy DIRECT
connect_failed TypeError: Cannot read property 'length' of null
    at /Applications/YakYak.app/Contents/Resources/app/node_modules/hangupsjs/lib/init.js:125:21
    at _fulfilled (/Applications/YakYak.app/Contents/Resources/app/node_modules/q/q.js:854:54)
    at /Applications/YakYak.app/Contents/Resources/app/node_modules/q/q.js:883:30
    at Promise.promise.promiseDispatch (/Applications/YakYak.app/Contents/Resources/app/node_modules/q/q.js:816:13)
    at /Applications/YakYak.app/Contents/Resources/app/node_modules/q/q.js:570:49
    at runSingle (/Applications/YakYak.app/Contents/Resources/app/node_modules/q/q.js:137:13)
    at flush (/Applications/YakYak.app/Contents/Resources/app/node_modules/q/q.js:125:13)
    at process._tickCallback (internal/process/next_tick.js:61:11)
error connecting TypeError: Cannot read property 'length' of null
    at /Applications/YakYak.app/Contents/Resources/app/node_modules/hangupsjs/lib/init.js:125:21
    at _fulfilled (/Applications/YakYak.app/Contents/Resources/app/node_modules/q/q.js:854:54)
    at /Applications/YakYak.app/Contents/Resources/app/node_modules/q/q.js:883:30
    at Promise.promise.promiseDispatch (/Applications/YakYak.app/Contents/Resources/app/node_modules/q/q.js:816:13)
    at /Applications/YakYak.app/Contents/Resources/app/node_modules/q/q.js:570:49
    at runSingle (/Applications/YakYak.app/Contents/Resources/app/node_modules/q/q.js:137:13)
    at flush (/Applications/YakYak.app/Contents/Resources/app/node_modules/q/q.js:125:13)
    at process._tickCallback (internal/process/next_tick.js:61:11)

Same here. I just updated from my patched version, getting the same errors as everyone else. On OSX High Sierra.

reconnecting 0
resolving proxy http://plus.google.com
resolving proxy https://plus.google.com
resolved proxy DIRECT
resolved proxy DIRECT
connect_failed TypeError: Cannot read property 'length' of null
    at /Applications/YakYak.app/Contents/Resources/app/node_modules/hangupsjs/lib/init.js:125:21
    at _fulfilled (/Applications/YakYak.app/Contents/Resources/app/node_modules/q/q.js:854:54)
    at /Applications/YakYak.app/Contents/Resources/app/node_modules/q/q.js:883:30
    at Promise.promise.promiseDispatch (/Applications/YakYak.app/Contents/Resources/app/node_modules/q/q.js:816:13)
    at /Applications/YakYak.app/Contents/Resources/app/node_modules/q/q.js:570:49
    at runSingle (/Applications/YakYak.app/Contents/Resources/app/node_modules/q/q.js:137:13)
    at flush (/Applications/YakYak.app/Contents/Resources/app/node_modules/q/q.js:125:13)
    at process._tickCallback (internal/process/next_tick.js:61:11)
error connecting TypeError: Cannot read property 'length' of null
    at /Applications/YakYak.app/Contents/Resources/app/node_modules/hangupsjs/lib/init.js:125:21
    at _fulfilled (/Applications/YakYak.app/Contents/Resources/app/node_modules/q/q.js:854:54)
    at /Applications/YakYak.app/Contents/Resources/app/node_modules/q/q.js:883:30
    at Promise.promise.promiseDispatch (/Applications/YakYak.app/Contents/Resources/app/node_modules/q/q.js:816:13)
    at /Applications/YakYak.app/Contents/Resources/app/node_modules/q/q.js:570:49
    at runSingle (/Applications/YakYak.app/Contents/Resources/app/node_modules/q/q.js:137:13)
    at flush (/Applications/YakYak.app/Contents/Resources/app/node_modules/q/q.js:125:13)
    at process._tickCallback (internal/process/next_tick.js:61:11)

Same

Yep, same issue as last week. Google must have changed something again. Arch Linux 4.18.16

Same here too.
Win 10 Pro x64

I saw this problem on macOS 10.3.6 this morning. Before coming to the forum, I downloaded "v1.5.3-beta-rolling" (which is also labelled 1.5.2?) and it works again. Not sure if that will help anyone here but thought I'd mention it.

@brian163 I tried both, neither works.

Ok, so I lied. Well, I didn't really but...

I had started another issue thread to inquire about the menu bar icon in macOS and in the process I quit YakYak to try something. When I went to start it up again, the "Connecting..." issue immediately returned.

Apologies but the rolling update version definitely resolved my connection issue earlier this morning, only to not connect again now. I suspect that is why @trenb was seeing a different result.

@DanLauer @belthesar @trenb

Please go to the following file in the YakYak directory

yakyak-linux-x64/resources/app/node_modules/hangupsjs/lib/init.js

And make the change:

ds:20 to ds:19

Under BOTH the self_entity and conv_states.

Make sure to "killall yakyak" on Linux (or kill all YakYak processes on any other system) and it should work fine, until Google changes that again.

@DanLauer @belthesar @trenb

Please go to the following file in the YakYak directory

yakyak-linux-x64/resources/app/node_modules/hangupsjs/lib/init.js

And make the change:

ds:20 to ds:19

Under BOTH the self_entity and conv_states.

Make sure to "killall yakyak" on Linux (or kill all YakYak processes on any other system) and it should work fine, until Google changes that again.

This worked for me on Windows 10 x64.

@DanLauer @belthesar @trenb

Please go to the following file in the YakYak directory

yakyak-linux-x64/resources/app/node_modules/hangupsjs/lib/init.js

And make the change:

ds:20 to ds:19

Under BOTH the self_entity and conv_states.

Make sure to "killall yakyak" on Linux (or kill all YakYak processes on any other system) and it should work fine, until Google changes that again.

This worked for me on Mac OSX 10.13.6

This work for me on Bunsenlabs
/opt/yakyak/resources/app/node_modules/hangupsjs/lib/init.js

fix also worked for me, OSX 10.13.16. thanks

Works for me!

Same... Uninstalled ( last time that worked ) no luck.

Does this change apply to binaries as well or do we have to compile from source?

@DanLauer @belthesar @trenb
Please go to the following file in the YakYak directory
yakyak-linux-x64/resources/app/node_modules/hangupsjs/lib/init.js
And make the change:
ds:20 to ds:19
Under BOTH the self_entity and conv_states.
Make sure to "killall yakyak" on Linux (or kill all YakYak processes on any other system) and it should work fine, until Google changes that again.

This worked for me on Mac OSX 10.13.6

The fix worked for me on macOS 10.13.6.
/Applications/YakYak.app/Contents/Resources/app/node_modules/hangupsjs/lib/init.js

Also worked for me.

Does this change apply to binaries as well or do we have to compile from source?

I didn't compile from source. Just edited the init.js file that came with the rolling beta and it worked fine for me.

Edited lines 106 and 112 as described, no change, still fails on Fedora 29.

This worked for me, thanks for the solution. No way I would have got here on my own.

@DanLauer @belthesar @trenb

Please go to the following file in the YakYak directory

yakyak-linux-x64/resources/app/node_modules/hangupsjs/lib/init.js

And make the change:

ds:20 to ds:19

Under BOTH the self_entity and conv_states.

Make sure to "killall yakyak" on Linux (or kill all YakYak processes on any other system) and it should work fine, until Google changes that again.

Thanks my friend... You made my morning...

Worked for me on Mac:

--- /Applications/YakYak.app/Contents/Resources/app/node_modules/hangupsjs/lib/init.js.bk       2018-10-31 23:05:23.000000000 -0700
+++ /Applications/YakYak.app/Contents/Resources/app/node_modules/hangupsjs/lib/init.js  2018-10-31 23:05:33.000000000 -0700
@@ -103,13 +103,13 @@
               }
             },
             self_entity: {
-              key: 'ds:20',
+              key: 'ds:19',
               fn: function(d) {
                 return CLIENT_GET_SELF_INFO_RESPONSE.parse(d[0]).self_entity;
               }
             },
             conv_states: {
-              key: 'ds:20',
+              key: 'ds:19',
               fn: function(d) {
                 return CLIENT_CONVERSATION_STATE_LIST.parse(d[0][3]);
               }

helped me on Ubuntu 18.04

Worked for me on Mac

That worked for Fedora 29.

@DanLauer @belthesar @trenb

Please go to the following file in the YakYak directory

yakyak-linux-x64/resources/app/node_modules/hangupsjs/lib/init.js

And make the change:

ds:20 to ds:19

Under BOTH the self_entity and conv_states.

Make sure to "killall yakyak" on Linux (or kill all YakYak processes on any other system) and it should work fine, until Google changes that again.

This fixes it for me as well, KDE Neon

I applied https://github.com/yakyak/hangupsjs/pull/107 and put the source for init.js up on gist if you want you can download that and replace it in /<path to yakyak resource>/node_modules/hangupsjs/lib

On mac this is generally /Applications/YakYak.app/Contents/Resources/app/node_modules/hangupsjs/lib

as @HomerSp says

This should be a lot more reliable and will, hopefully, survive future server-side updates (like one last night).

Please dont trust me and look at what you are downloading before applying it.
For those that dont here is all I did from within /<path to yakyak resource>/node_modules/hangupsjs

wget https://patch-diff.githubusercontent.com/raw/yakyak/hangupsjs/pull/107.patch
patch -p1 < 107.patch
rm -rf lib/*
npm i

@DanLauer @belthesar @trenb

Please go to the following file in the YakYak directory

yakyak-linux-x64/resources/app/node_modules/hangupsjs/lib/init.js

And make the change:

ds:20 to ds:19

Under BOTH the self_entity and conv_states.

Make sure to "killall yakyak" on Linux (or kill all YakYak processes on any other system) and it should work fine, until Google changes that again.

This worked for me in Ubuntu 18.04 TLS

@DanLauer @belthesar @trenb

Please go to the following file in the YakYak directory

yakyak-linux-x64/resources/app/node_modules/hangupsjs/lib/init.js

And make the change:

ds:20 to ds:19

Under BOTH the self_entity and conv_states.

Make sure to "killall yakyak" on Linux (or kill all YakYak processes on any other system) and it should work fine, until Google changes that again.

Thank you Dan, this worked for me on Mac OSX 10.14.1

ds:20 to ds:19
Thank you. This also works for me on Mac OSX 10.13.6

I can also confirm that the patch works. Thanks!

confirmed as well, appreciate it

I have same issue as above. Will wait for some most excellent person like Zach Toben to upload the files for me to replace on my Windows 7 machine.

Thank you! This fixed things again!

Thank you so much! You guys always get on this stuff so quick.

Changing
ds:20 to ds:19
for self_entity and conv_states fixed it for me.
macOS 10.13.6

macOS 10.14.1
The change fixed the issue for me also.

Glad it's working for everyone. Looking forward to a fix for us Windows noobs.

@DanLauer @belthesar @trenb

Please go to the following file in the YakYak directory

yakyak-linux-x64/resources/app/node_modules/hangupsjs/lib/init.js

And make the change:

ds:20 to ds:19

Under BOTH the self_entity and conv_states.

Make sure to "killall yakyak" on Linux (or kill all YakYak processes on any other system) and it should work fine, until Google changes that again.

Thanks! Worked on Ubuntu 18.04. My app is installed in /opt/yakyak/, so my full path to init.js was:

/opt/yakyak/resources/app/node_modules/hangupsjs/lib/init.js

Appreciate it!

Worked in macOS here too

Win10 x64 Pro. The fixes by @tomasz-musialek worked for me.

@Setitie: Open your YakYak folder, open 'Resources', open 'App', open 'Node_modules', open 'hangupsjs', right click 'init.js' and choose Edit which will open 'init.js' in Notepad, ctrl+F and find 'self_entity'. Shortly after that (because notepad can't show new lines right in these files) will be the letters ds:20, change that 20 to a 19. Do ctrl+f again, find 'conv_states'. Same thing, ds:20 to ds:19 RIGHT after it. (edit: After that, save and close the file, and open YakYak. Profit!)

It'll look like this:
self_entity: { key: 'ds:20'

You can do it! I believe in you!

Hopefully https://github.com/yakyak/hangupsjs/pull/107 will fix this in a more permanent way.

@DanLauer @belthesar @trenb

Please go to the following file in the YakYak directory

yakyak-linux-x64/resources/app/node_modules/hangupsjs/lib/init.js

And make the change:

ds:20 to ds:19

Under BOTH the self_entity and conv_states.

Make sure to "killall yakyak" on Linux (or kill all YakYak processes on any other system) and it should work fine, until Google changes that again.

Worked for me on Windows 10 x64 after YakYak stopped connecting again.

fix by @tomasz-musialek worked on win10 x64 with the latest release (mislabeled rolling 1.5.3).

thanks a lot, tomasz.

Yes, it solves the problem. Thank you.

Is this because of Google changing the protocol or why are there so many of these problems lately? I have a feeling this fix is also going to be obsolete as soon as Google changes something again.

Yes, they are doing changes server-side. Not really sure why they have been doing these changes, but the data that hangupsjs pulls was never intended to be used this way. I have created a pull request for hangupsjs that removes the reliance on the ds keys though, so once that's merged to master I am hoping that these problems should be completely eliminated (until they do more extensive changes).

yes, it works for me.

try this out, if you need.

Thanks for help.

Was off work sick for a little bit. Finally did the above CTRIL F thing and worked great. Thank you

The ds:19 issue fixed me right up on Ubuntu 18.04 LTS 64bit.

It was even better than 2 days ago.

The fix with ds's that I applied before got yakyak working mostly but now, my entire conversation list and history completely shows. Before it was just only conversations I had recently in YakYak, older inactive ones would not show.

Confirmed ds:19 fix works on Windows.

Confirming that applying the patch from yakyak/hangupsjs#107 to v1.5.3-beta-rolling as @plessbd described above and compiling hangupsjs (that's the npm i part, right?) fixes this issue i.e. enables YakYak to connect to Google Hangouts and function as expected. Mac OS X 10.11.6 El Capitan.

For those interested in what I did, here it is. First I downloaded and installed the binary i.e. the zip file for v1.5.3 from the release page. Once installed in my Applications folder, I opened up the Terminal application and did the following commands:

cd /Applications/YakYak.app/Contents/Resources/app/node_modules/hangupsjs
wget https://patch-diff.githubusercontent.com/raw/yakyak/hangupsjs/pull/107.patch
patch -p1 < 107.patch
rm -rf lib/*
npm i

Arriba!

_NB: technically my YakYak is in a folder called YakYak-darwin-x64 in my Applications folder, so the cd command is different for me. I just used what is most likely the 'common' file path to the hangupsjs directory._

@DanLauer @belthesar @trenb

Please go to the following file in the YakYak directory

yakyak-linux-x64/resources/app/node_modules/hangupsjs/lib/init.js

And make the change:

ds:20 to ds:19

Under BOTH the self_entity and conv_states.

Make sure to "killall yakyak" on Linux (or kill all YakYak processes on any other system) and it should work fine, until Google changes that again.

Worked on Ubuntu 16.04 LTS. Why won't make this as an official hotfix then?

@DanLauer @belthesar @trenb

Please go to the following file in the YakYak directory

yakyak-linux-x64/resources/app/node_modules/hangupsjs/lib/init.js

And make the change:

ds:20 to ds:19

Under BOTH the self_entity and conv_states.

Make sure to "killall yakyak" on Linux (or kill all YakYak processes on any other system) and it should work fine, until Google changes that again.

Thank you Dan, this worked for me on Mac OSX 10.14.1

This fix also works for me on macOS 10.14

The below worked for me on OS X Mojave 10.14.1

ds:20 to ds:19
Under BOTH the self_entity and conv_states.

I'm still getting the connecting ... issue after following all the steps above (using the latest 1.5.3-BETA download, changing the ds;20 to ds:19). I'm even getting the following when attempting to start YakYak from the command line:

C:\Tools\yakyak>yakyak

C:\Tools\yakyak>
hconnect
reconnecting 0
resolving proxy http://plus.google.com
resolving proxy https://plus.google.com
resolved proxy DIRECT
resolved proxy DIRECT
connect_failed TypeError: Cannot read property 'length' of undefined
at C:\Tools\yakyak\resources\app\node_modules\hangupsjs\libinit.js:125:20
at _fulfilled (C:\Tools\yakyak\resources\app\node_modules\q\q.js:854:54)
at self.promiseDispatch.done (C:\Tools\yakyak\resources\app\node_modules\q\q.js:883:30)
at Promise.promise.promiseDispatch (C:\Tools\yakyak\resources\app\node_modules\q\q.js:816:13)
at C:\Tools\yakyak\resources\app\node_modules\q\q.js:570:49
at runSingle (C:\Tools\yakyak\resources\app\node_modules\q\q.js:137:13)
at flush (C:\Tools\yakyak\resources\app\node_modules\q\q.js:125:13)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
error connecting TypeError: Cannot read property 'length' of undefined
at C:\Tools\yakyak\resources\app\node_modules\hangupsjs\libinit.js:125:20
at _fulfilled (C:\Tools\yakyak\resources\app\node_modules\q\q.js:854:54)
at self.promiseDispatch.done (C:\Tools\yakyak\resources\app\node_modules\q\q.js:883:30)
at Promise.promise.promiseDispatch (C:\Tools\yakyak\resources\app\node_modules\q\q.js:816:13)
at C:\Tools\yakyak\resources\app\node_modules\q\q.js:570:49
at runSingle (C:\Tools\yakyak\resources\app\node_modules\q\q.js:137:13)
at flush (C:\Tools\yakyak\resources\app\node_modules\q\q.js:125:13)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)

I added an if(d){} block around the if block on the line above, and was able to get YakYak to run and log in but there was no chat messages.

I'm using the WIndows 10 x64 prebuilt libraries.

Followed the steps outlined by @fulltrucker, can confirm fixed on macOS 10.13.6

@tomasz-musialek , your modification from ds:20 to ds:19 worked to get my yakyak working on windows 10 x64. thanks

the ds:19 work for me yesterday, today I get the following... over and over... The changes are still in place.
yakyaksad

Changing ds:20 to ds:19 didn't work for me at first (OSX 10.12.6, YakYak 1.5.2). When I opened the application, it spent ~20 seconds trying to connect and then slooooowly transitioned to the main screen with the white/grey/green bars but there were no other UI elements (no friend names/icons/text anywhere).

When I deleted the application from ~/Applications/ and replaced it with a newly-downloaded one (after making the ds:20 to ds:19 change), it started working.

Thank you for the fix!

This solution worked for me on MacOS Sierra:
https://github.com/yakyak/yakyak/issues/999#issuecomment-435510495
YakYak v1.5.2

@DanLauer @belthesar @trenb

Please go to the following file in the YakYak directory

yakyak-linux-x64/resources/app/node_modules/hangupsjs/lib/init.js

And make the change:

ds:20 to ds:19

Under BOTH the self_entity and conv_states.

Make sure to "killall yakyak" on Linux (or kill all YakYak processes on any other system) and it should work fine, until Google changes that again.

Worked for me as well on MacOS 10.14.1 (Mojave)

Sorry for the delay in tackling this

The rolling release is building as of now and after checking that it works we'll release a stable version.

Big thanks to @HomerSp for patching it up again!

I've made the changes of self_entity ('ds:21') and conv_states('ds:20') to 'ds:19' as proposed here.
It wasn't enough to start yakyak in Linux, so I've made this old change as well:

if (d.length)  

to

if (typeof d !== "undefined" && d !== null ? d.length : void 0) {

which then made it start up and show me this:
image

Almost there... LOL

any more ideas? (I'm running it on Arch Linux, up2date as of yesterday!)

Are you still having this issue? I just updated to 1.5.2, then made the (self_entity=DS:19 and conv_states=ds:19) changes to init.js. It is connecting just fine now.

I've made the changes of self_entity ('ds:21') and conv_states('ds:20') to 'ds:19' as proposed here.
It wasn't enough to start yakyak in Linux, so I've made this old change as well:

if (d.length)  

to

if (typeof d !== "undefined" && d !== null ? d.length : void 0) {

which then made it start up and show me this:
image

Almost there... LOL

any more ideas? (I'm running it on Arch Linux, up2date as of yesterday!)

That exact thing happened to me as well. I uninstalled the application, reinstalled from a new (same version) file from Github, did the hack to init.js and it's working again for me (OSX Sierra)

I upgraded to v1.5.3 and the problem was fixed.

@hradec and @sfoley-gpqa this seems to be a different problem

looks like I am having the issue again. :(

Edit: Upgrading to the newest pre-release beta thingy fixed me.

Looks like ds:18 is the new magic value.

Looks like ds:18 is the new magic value.

As per Mateusz, I updated the DC values to 18 and works again. Thank you Mateusz

Looks like ds:18 is the new magic value.

As per Mateusz, I updated the DC values to 18 and works again. Thank you Mateusz

As of 11/14 I was having this hanging connection issue again.
This fixed it.

Looks like ds:18 is the new magic value.

Thank you. DS18 is the correct answer. Google needs to give me an official (free) app for Mac or stop messing with this.

@Setitie @jbartolozzi @jroddy187

The newest "v1.5.4 Beta rolling" release seems to have it fixed and should be more resistant against future protocol changes by Google.

You may try downloading the new v1.5.4 Beta rolling release at:

https://github.com/yakyak/yakyak/releases

The rolling beta is the one I've been using for the last few days on 10.14.1 and didn't have any additional issues with it.

Logged in this morning and realized I too was having the same issue as everyone else.
Followed @tomasz-musialek link to the rolling beta and I'm all set now.
Thanks!!!

v1.5.3 in the releases should also be working fine.

The only difference in the rolling release can be seen on OSX tray icon title (which has been removed).

@jroddy187
Thank you ! Changing to ds:18 worked for me (on arch linux)

@claire-w the newer version in releases solved the problem.

FYI: I was seeing the same behavior with my company sso auth'd id. I could login via a regular controlled id from google but not my company id with sso.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ilium007 picture ilium007  路  5Comments

ebramanti picture ebramanti  路  6Comments

leftpropeller picture leftpropeller  路  3Comments

ghost picture ghost  路  3Comments

Christoph-Harms picture Christoph-Harms  路  4Comments