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

Whatsapp will need authorization to your account. Scan the shown qr code. You might need to restart the program after scanning the qr code #7

Open
alabbas-ali opened this issue Nov 1, 2021 · 1 comment

Comments

@alabbas-ali
Copy link

I run the code like:

python3 Main.py number1 number2

Error thrown:

Whatsapp will need authorization to your account. Scan the shown qr code. You might need to restart the program after scanning the qr code
2021/11/01 15:46:43 error logging in: error during login: error decoding login resp: json: cannot unmarshal array into Go value of type map[string]interface {}


exit status 1
2021/11/01 15:46:44 error logging in: error during login: error decoding login resp: json: cannot unmarshal array into Go value of type map[string]interface {}


exit status 1
Traceback (most recent call last):
  File "Main.py", line 35, in <module>
    main()
  File "Main.py", line 29, in main
    detector.detect()
  File "/home/alabbas/workspace/social-media-detector-api/SocialDetector.py", line 10, in detect
    app.process()
  File "/home/alabbas/workspace/social-media-detector-api/Whatsapp.py", line 42, in process
    self.detect_numbers(self.phone_numbers_to_detect)
  File "/home/alabbas/workspace/social-media-detector-api/Whatsapp.py", line 37, in detect_numbers
    phone.set_app_state(self.get_name(), AppUsageEnum.USAGE if "\"status\":200" in result_decoded[index] else AppUsageEnum.NO_USAGE)
IndexError: list index out of range

Am i missing something here. Also way there is python code that runs go code. wont it by a better idea if all written in go or Python ??

@MuhammadAamer
Copy link

Hello I am Aamer.
Has someone solved this problem i am also facing this issue.

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

2 participants