-
Notifications
You must be signed in to change notification settings - Fork 28
error: connection_data["phone"] #19
Comments
Well, that's bad. It seems like the WhatsApp Web API has quite changed. I am busy now, I will take a look on that later. |
thanks
…On Tue, Jan 11, 2022 at 6:18 PM Faiz Jazadi ***@***.***> wrote:
Well, that's bad. It seems like the WhatsApp Web API has quite changed. I
am busy now, I will take a look on that later.
—
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADL6RELGKNRHM2CKZ43HCRLUVQ7MJANCNFSM5LWK7CSA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
*i digit web design ;)*
|
If it helps, the value of
At least for me. |
I don't seem to be able to reproduce this issue. @rijumone Your |
Checking this. |
I can't reproduce the error. Is it related to this? |
I think, yes! The message received (lacking the |
I have similar results when I scanned it using a multi-device enabled WhatsApp (produces no output, just exits). Try setting the logger mode to logging.getLogger("kyros").setLevel(logging.DEBUG) I found out that the WhatsApp websocket server closed the connection right after the QR scan. It seems that many things have to be adjusted. Baileys and whatsmeow both supports multi-device. I think they can be used as a reference. |
@p4kl0nc4t Apologies for the late response, last week has been incredibly busy. Traceback (most recent call last):
File "/home/rijumone/Kitchen/kyros/main.py", line 43, in <module>
asyncio.run(main())
File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/home/rijumone/Kitchen/kyros/main.py", line 28, in main
await scanned
File "/home/rijumone/Kitchen/kyros/.venv/lib/python3.9/site-packages/kyros/client.py", line 102, in wait_qr_scan
self.phone_info = connection_data["phone"]
KeyError: 'phone' Printing {'type': 'upgrade_md_prod', 'version': '2.2126.11'} There is no I am checking the issue you linked previously. Do you have any suggestion? |
@p4kl0nc4t I was able to have a successful login using this particular branch of this repo. Though what a successful login means, I am still investigating. I was able to scan the QR code on my phone and it didn't error out. Terminal spewed out some debug text showing my contacts data. This is in TS which I am not familiar with. Suggestions welcome. |
I can help reviewing it, i have worked with TS. I'm using WA Business and it's working fine on my Android phone (I have testes develop branch). I don't have tested on WA multidevice, maybe with the support of multiple devices maybe there are some changes, but i don't think so because Maybe the field was removed in new versions of WA because phone can be offline or off. In any case i think that it can be ignored. If you can share the steps to reproduce the error it would help me |
dear @p4kl0nc4t please help me
my code is:
` # create the Client instance using create class method
whatsapp = await kyros.Client.create()
after scan qr code, occur this error:
Traceback (most recent call last): File "init.py", line 41, in <module> asyncio.run(main()) File "/usr/local/lib/python3.8/asyncio/runners.py", line 43, in run return loop.run_until_complete(main) File "/usr/local/lib/python3.8/asyncio/base_events.py", line 612, in run_until_complete return future.result() File "init.py", line 26, in main await scanned File "/tmp/w/lib/python3.8/site-packages/kyros/client.py", line 103, in wait_qr_scan self.phone_info = connection_data["phone"] KeyError: 'phone'
The text was updated successfully, but these errors were encountered: