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

Runtime Error / doesn't connect anymore #72

Open
kurokirasama opened this issue Apr 13, 2022 · 49 comments
Open

Runtime Error / doesn't connect anymore #72

kurokirasama opened this issue Apr 13, 2022 · 49 comments

Comments

@kurokirasama
Copy link

Hello,

I'm having issues connecting. I got this screen for a while:

whatcli2

Then it changes to this, and it remains there forever:

whatcli3

Also, 2 out of 5 times I run the app I got this screen:

whatcli

Regards,

@Saliba-san
Copy link

same here!

@johnwuelk
Copy link

same here, fails on different devices.

@bbbart
Copy link

bbbart commented Apr 15, 2022

yes, that's happening here as well

@normen
Copy link
Owner

normen commented Apr 15, 2022

Yeah, I guess its time to finish up the whatsmeow version, I didn't (and probably still won't for some time) find much time to complete that though.

@sozoalvin
Copy link

does anybody have a clue on where to start debugging? i can help to take a look

@normen
Copy link
Owner

normen commented Apr 22, 2022

For those that want to help fix this, check out the whatsmeow branch, it should work logging in and retrieving messages (when using multiclient). The main remaining thing is storing all needed info of a message (ID?) in the local DB so one can later recreate message objects in a form the whatsmeow library understands (e.g. to retrieve additional info like images, to quote etc.).

@kurokirasama
Copy link
Author

@normen whatsmeow branch gives me this error when building with go build:

build github.com/normen/whatscli: cannot load embed: malformed module path "embed": missing dot in first path element

@normen
Copy link
Owner

normen commented Apr 22, 2022

Just use the makefile, something seems to be off there, I don't get this issue. Maybe run a make get before.

@kurokirasama
Copy link
Author

like this?

make get Makefile

I got the same error, maybe I'm missing some go dependencies...

go get
build github.com/normen/whatscli: cannot load embed: malformed module path "embed": missing dot in first path element
make: *** [Makefile:16: get] Error 1

@normen
Copy link
Owner

normen commented Apr 22, 2022

Try pulling again, I pushed my local changes, its all WIP mind you!

@kurokirasama
Copy link
Author

I might be doing something wrong because I got the same error, is make get Makefile correct?

@normen
Copy link
Owner

normen commented Apr 22, 2022

make get would be the command but the added Makefile doesn't really change anything I guess. No idea whats going wrong there for you.

@kurokirasama
Copy link
Author

@normen it was a version problem. I had installed 1.13, it was necessary 1.18

@TheSashmo
Copy link

Is this issue closed or still open? I can't use the application either, I get the same message as the post lists, 1.11 is the latest release, but I see comments for 1.13 and 1.18.

@normen
Copy link
Owner

normen commented Jun 4, 2022

Is this issue closed or still open? I can't use the application either, I get the same message as the post lists, 1.11 is the latest release, but I see comments for 1.13 and 1.18.

In my browser its still open. kurokirasama is talking about the golang version for compiling the WIP branch.

@b3h3m0th
Copy link

b3h3m0th commented Jul 22, 2022

Right, so what you are saying is one should start debugging on the whatsmeow branch and the releases are basically broken?

@normen
Copy link
Owner

normen commented Jul 22, 2022

Seems to depend on the region and settings if its still working. The whatsmeow branch needs to be finished, not debugged.

@ZobairQ
Copy link

ZobairQ commented Aug 8, 2022

im having the same problem

@pendragons-code
Copy link

I'm still having this issue

@icrescenti
Copy link

No solution it seems

@pendragons-code
Copy link

pendragons-code commented Aug 14, 2022 via email

@pendragons-code
Copy link

I had an older install of whatscli and a ubuntu PC, even that did not work, this means it is a change on whatsapp's end that denies our connection. I doubt we can go anywhere from here unless we can see what this one thing is. I might look at similar projects and see how we can employ some of the methodologies used in said other projects. Despite all that I repeat my point that we might not go anywhere from here.

@normen
Copy link
Owner

normen commented Aug 16, 2022

Again, the solution is the new whatsmeow library for which a branch of whatscli exists but isn't finished.

@pendragons-code
Copy link

pendragons-code commented Aug 16, 2022 via email

@michalspano
Copy link

Still interested about this.

@pendragons-code
Copy link

pendragons-code commented Oct 11, 2022 via email

This was referenced Oct 26, 2022
@martin-braun
Copy link

@normen If my understanding is correct, the whatsmeow branch is working, but crippled. I respect that there are times where you cannot work on this, this is FOSS and anybody can pickup your work at anytime. However, I think it would be useful to have rather a limited experience than no experience, so how about making an update on Homebrew nonetheless?

@normen
Copy link
Owner

normen commented Feb 13, 2023

Actually the current version does work for some accounts in some countries, including mine.

@martin-braun
Copy link

martin-braun commented Feb 16, 2023

@normen That's interesting. I have a similar issue as OP without even getting to the point of registering the client. It throws an error right after start with the version that I installed using brew install whatscli:

2023-02-16 3 43 53 PM

So, the error is panic: runtime error: invalid memory address or nil pointer dereference, but the stacktrace is different:

[signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x142903f]
goroutine 40 [running]: github.com/Rhymen/go-whatsapp.(*Conn).Login(0x0, 0x0?)
github.com/Rhymen/[email protected]/session.go:191 +0x7f
github.com/normen/whatscli/messages.(*SessionManager).loginWithConnection(0xc0001eaa50, 0x0)
github.com/normen/whatscli/messages/session_manager.go:234 +0x1d3
github.com/normen/whatscli/messages.(*SessionManager).runManager(0xc0001eaa50)
github.com/normen/whatscli/messages/session_manager.go:71 +0x4e
created by
github.com/normen/whatscli/messages.(*SessionManager).StartManager
github.com/normen/whatscli/messages/session_manager.go:65 +0x6b

Maybe it was wrong to close #89?

@normen
Copy link
Owner

normen commented Feb 17, 2023

Maybe it was wrong to close #89?

No, thats exactly the error everybody else is getting too.

@normen normen mentioned this issue Mar 16, 2023
@normen normen changed the title doesn't connect anymore Runtime Error / doesn't connect anymore Mar 16, 2023
@normen normen pinned this issue Mar 16, 2023
@ezimir
Copy link

ezimir commented Mar 17, 2023

I'm getting same error on PopOS 22.04.

Either compiling from source (git clone, make), or using executables from release assets (out of curiosity, I've tried each 0.X.0 release all the way back to 0.5.0, same error).

Is there anything I can help to help debug this? I've got no experience with go, but I'd very much like a working whatsapp client in terminal.

λ lsb_release -a
No LSB modules are available.
Distributor ID:	Pop
Description:	Pop!_OS 22.04 LTS
Release:	22.04
Codename:	jammy
λ go version
go version go1.20.2 linux/amd64

@normen
Copy link
Owner

normen commented Mar 17, 2023

Again: The crash is in the go-whatsapp library, so any changes in code would be in that library - if it was still maintained.

Currently whatsmeow is the only go library known to work with the new whatsapp multiclient system and using it means a complete rewrite of this software except for the UI part.

@tripplilley
Copy link

tripplilley commented Mar 23, 2023

@normen: if you accept normen/homebrew-tap#1, users can help out with the testing (both of the whatsmeow branch and of the main branch whenever you start merging back).

In the meantime, anyone who wishes to try out the whatsmeow branch can do so immediately by switching over to my fork of the tap and installing from there:

$ brew remove whatscli
$ brew untap normen/tap
$ brew tap tripplilley/whatscli
$ brew install --HEAD whatscli-whatsmeow
$ whatsmeow

Note that it is possible to install both whatsmeow and whatscli alongside each other, as they use different formula and binary names.

I have successfully installed and tested basic device linking and message sending on my MBP:

$ uname -a
Darwin gina-inviere.local 21.6.0 Darwin Kernel Version 21.6.0: Mon Dec 19 20:44:01 PST 2022; root:xnu-8020.240.18~2/RELEASE_X86_64 x86_64 i386 Darwin

Screen_Shot_2023-03-23_at_18_07_05_0800

@keys-i
Copy link

keys-i commented Apr 25, 2023

Go build shows no module found for crypto/ed25519
And i don't know how to fix that

@normen
Copy link
Owner

normen commented Apr 25, 2023

The whatsmeow branch is not ready for testing or using at all, its meant for development.

@99702
Copy link

99702 commented May 29, 2023

whatsmeow branch did work. I just need to clone ,, build and run binary.
git clone -b whatsmeow [email protected]:normen/whatscli.git
cd whatscli && go build main.go
./whatscli

@TheSashmo
Copy link

I can confirm this works, BUT it shows offline status, and any messages that I type go to whatsapp, but I can not see them in the chat. I can see them on my phone, but no other updates come to the application. So it's still broken.

@99702
Copy link

99702 commented May 30, 2023

yes , messages are being sent but it can not see them both messeges i sent and new messages.

@klownie
Copy link

klownie commented Jul 16, 2023

i can confirm Whatsmew branch works but it does not show a qr code

@normen
Copy link
Owner

normen commented Jul 16, 2023

Wow I guess I should delete the whatsmeow branch..

@99702
Copy link

99702 commented Jul 16, 2023

Rather trying it, nchat (https://github.com/d99kris/nchat) works best for me , for both whatsapp and telegram. It is two way communication with whatsapp and include alot of more features .

@tripplilley
Copy link

Wow I guess I should delete the whatsmeow branch..

Perhaps instead, you could just archive the whole repo? That way it will be obvious that you're not actively maintaining it, and you won't be bothered by issue messages, but the original code and the initial whatsmeow work will stay available to anyone who wants to pick it up in the future?

@normen
Copy link
Owner

normen commented Jul 17, 2023

Rather trying it, nchat (https://github.com/d99kris/nchat) works best for me , for both whatsapp and telegram. It is two way communication with whatsapp and include alot of more features .

Nice, I should link that in the README

Perhaps instead, you could just archive the whole repo? That way it will be obvious that you're not actively maintaining it, and you won't be bothered by issue messages, but the original code and the initial whatsmeow work will stay available to anyone who wants to pick it up in the future?

Nice thought but even with explicit promises to look at the branch nobody did anything - its always possible for anyone to pick up the work. And again, it still works as is for me, so you will either have to wait until I get around to it or be bold enough to make a fork or PR. 🤷‍♂️

@cdkw2
Copy link

cdkw2 commented Sep 11, 2023

Still the same error

@keys-i
Copy link

keys-i commented Sep 15, 2023

Rather trying it, nchat (https://github.com/d99kris/nchat) works best for me , for both whatsapp and telegram. It is two way communication with whatsapp and include alot of more features .

Nice, I should link that in the README

Perhaps instead, you could just archive the whole repo? That way it will be obvious that you're not actively maintaining it, and you won't be bothered by issue messages, but the original code and the initial whatsmeow work will stay available to anyone who wants to pick it up in the future?

Nice thought but even with explicit promises to look at the branch nobody did anything - its always possible for anyone to pick up the work. And again, it still works as is for me, so you will either have to wait until I get around to it or be bold enough to make a fork or PR. 🤷‍♂️

See this for future reference

@keys-i
Copy link

keys-i commented Sep 17, 2023

Nice thought but even with explicit promises to look at the branch nobody did anything - its always possible for anyone to pick up the work. And again, it still works as is for me, so you will either have to wait until I get around to it or be bold enough to make a fork or PR.

Hi would you put your code as a different branch on this repo?

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