open-wa / wa-automate-python

💬 🤖 The most advanced Python whatsapp library for chatbots with advanced features. Be sure to ⭐ this repository for updates!
Other
330 stars 71 forks source link

Different output from firefox and chrome browser #16

Closed manojsitapara closed 4 years ago

manojsitapara commented 4 years ago

Firefox and Chrome browser returns different json object from same function.

for example: group_get_participants_ids() API return following output

From FireFox:

[
    {
        "_serialized": "XXXXXXXXXXX@c.us",
        "server": "c.us",
        "user": "XXXXXXXXXXX"
    },
    {
        "_serialized": "XXXXXXXXXXX@c.us",
        "server": "c.us",
        "user": "XXXXXXXXXXX"
    },
    {
        "_serialized": "XXXXXXXXXXX@c.us",
        "server": "c.us",
        "user": "XXXXXXXXXXX"
    }
]

From Chrome:

[
     "XXXXXXXXXXX@c.us",
     "XXXXXXXXXXX@c.us",
     "XXXXXXXXXXX@c.us",
     "XXXXXXXXXXX@c.us"
 ]

Is there any reason? Because of this project will be tightly couple. :(

mrodal commented 4 years ago

Please try the latest version 1.1.5 that has this fixed, and if you find more cases like this one report them

Thanks!

manojsitapara commented 4 years ago

@mrodal from where can I download v1.1.5? I do not see any latest check in?

mrodal commented 4 years ago

Upgrade with pip install --upgrade openwa

manojsitapara commented 4 years ago

Thanks !! I got the latest version but it looks like it is breaking existing functionality for example look at below error 'WhatsAPIDriver' object has no attribute 'get_all_groups'

I think this get_all_groups functionality was added in the version 1.1.2 https://github.com/open-wa/wa-automate-python/issues/11

Can you please take a look? Thank you !!

mrodal commented 4 years ago

Oh, Im very sorry, the pc where I had those changes died and I though I had pushed those commits, but looks like not.. I'm waiting for a motherboard to replace it and then I'll have access to that again..

In the meantime I'll try to recover that from the published 1.1.2 version

mrodal commented 4 years ago

Done, please use version 1.1.6

manojsitapara commented 4 years ago

No problem !! I understand it happen, Thank you for your quick fix !!

I have checked the new fix on both Chrome and FireFox, Both gives identical results now.

Thanks you !!