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

App crashes immediately after I enter phone number #11

Closed
amrhosseiny opened this issue Apr 27, 2024 · 17 comments · Fixed by #14
Closed

App crashes immediately after I enter phone number #11

amrhosseiny opened this issue Apr 27, 2024 · 17 comments · Fixed by #14

Comments

@amrhosseiny
Copy link

The title is pretty much it. The app crashes immediately after I enter my phone number. Windows 10. And I use wipemychat_Windows_x86_64.zip, Nov 25 2023.

@rusq
Copy link
Owner

rusq commented Apr 28, 2024

Hey @amrhosseiny, were there any messages printed?

@rusq
Copy link
Owner

rusq commented Apr 28, 2024

Just tried the aforementioned version on windows 10 x64, and it works on my machine, looking forward to see the error message.

@amrhosseiny
Copy link
Author

amrhosseiny commented Apr 28, 2024

Hey there,
I checked again, the problem persists. And no there was not anything being printed. Only a sudden crash after I enter the phone number...

@rusq
Copy link
Owner

rusq commented Apr 29, 2024

My guess is - you have entered invalid api hash or api secret or both, I just tried it, with invalid values, it allows to enter the phone number, but then terminates. I'll see if there's an API endpoint that allows to check the validness of api credentials before offering to enter the phone number.

Can you reset the auth with .\wipemychat -reset and try again, ensuring that credentials are correct?

@exciar
Copy link

exciar commented Apr 29, 2024

this is the same issue that I had been dealing with I'm going to try resetting and see if it makes a difference

@exciar
Copy link

exciar commented Apr 29, 2024

@amrhosseiny @rusq I have a suggestion and I think I know why this is happening and yes I think there needs to be a menu

it needs to state explicitly in the enter a phone number part (after credentials) that its the International Number format that's required

@amrhosseiny
Copy link
Author

Hi again...
I've checked both possibilities before posting this issue. I am sure that 1. I am entering the phone number with correct formatting and 2. the api credentials entered are correct. I don't know what else could be wrong...

@rusq
Copy link
Owner

rusq commented Apr 29, 2024

Sorry about that, thanks for the information. I'll see into adding some optional tracing, because otherwise I'm walking blind.

@exciar
Copy link

exciar commented Apr 29, 2024

Hi again... I've checked both possibilities before posting this issue. I am sure that 1. I am entering the phone number with correct formatting and 2. the api credentials entered are correct. I don't know what else could be wrong...

run the reset like how rusq instructed me how and then, rerun the program if it closes when it prompts you to enter a phone number (international format) then run the number again (international format)

@rusq
Copy link
Owner

rusq commented Apr 29, 2024

@exciar that's a good suggestion re adding instructions on international number format, thanks! I'll bundle it with the tracing

@rusq
Copy link
Owner

rusq commented Apr 29, 2024

@amrhosseiny @exciar I'm glad that finally this repository gets some activity, so thank you both for issues and suggestions. I haven't advertised it anywhere, so that got me wondering, could you tell me how you discovered this repository?

@amrhosseiny
Copy link
Author

@exciar @rusq
I've done all that, the problem persists...

@amrhosseiny
Copy link
Author

@rusq
Also I found it using github search :) Nice work, by the way...

@exciar
Copy link

exciar commented Apr 29, 2024

@amrhosseiny @exciar I'm glad that finally this repository gets some activity, so thank you both for issues and suggestions. I haven't advertised it anywhere, so that got me wondering, could you tell me how you discovered this repository?

I like clearing and deleting my messages, and I don't like leaving digital footprints (messages) so I can leave a group/platform with minimal traces, so the easiest thing or way to do that is to look for GitHub projects and browser extensions to do things like these, I liked your project since all the others, especially the most popular one requires you to run it in a python script and I find that finicky and I'm lazy, that's where I found this, it's clean, simple, and has a GUI

@amrhosseiny
Copy link
Author

@rusq
I got a new api_id and api_hash and that fixed the problem! don't know what was wrong with the first one...
Thanks...
Just one more thing, could you please add support for arabic/persian characters? Group names with those characters aren't shown properly...Since that's out of the scope of this issue(?) I can open a new one, if you like...

@rusq
Copy link
Owner

rusq commented Apr 30, 2024

Glad to hear that it started working for you!

I created an issue #13 , but it may be harder than it seems, as this might be limitation of the tview library - I'll have to explore it a bit.

You could use the "batch" mode as a workaround meanwhile, it will use your terminal capabilities, and output proper UTF-8.

@rusq
Copy link
Owner

rusq commented May 1, 2024

This is now fixed, it won't save creds unless they're valid.

Also, it won't allow to enter the phone in non-international format (the checks are pretty dumb, no check for the phone number length, but that's on the user).

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

Successfully merging a pull request may close this issue.

3 participants