mukulhase / WebWhatsapp-Wrapper

An API for sending and receiving messages over web.whatsapp [Working as of 18th May 2018]
https://webwhatsapi.readthedocs.io/en/latest/
MIT License
2.03k stars 797 forks source link

lib broke again #239

Open WilliamCampolina opened 6 years ago

WilliamCampolina commented 6 years ago

Hello, I just made the clone and when running the example I get the following error.

image

fyudelgado commented 6 years ago

Your sample code, is the default that comes with the Wrapper?

WilliamCampolina commented 6 years ago

yes @fyudelgado

fyudelgado commented 6 years ago

I downloaded the code today, and I can running without any errors, maybe will be the python version, I'm using 3.5.2

fyudelgado commented 6 years ago

Also did you set your enviroment to run selenium?

WilliamCampolina commented 6 years ago

my version of python is 3.6.2 I will put the 3.5.2 to do a test.

WilliamCampolina commented 6 years ago

@fyudelgado yes my environment is set to run selenium

fyudelgado commented 6 years ago

I'm checking right now, few moments before the code was running... It seems that the code of the page of web.whatsapp.com changed. So the Wrapper needs to be updated and fixed for the new changes.

eduardobento commented 6 years ago

document.querySelector("#app")._reactRootContainer.current.child.child.child.child.child.child.sibling.sibling.sibling.sibling.sibling.child.child.child.child.child.sibling.sibling.sibling.sibling.sibling.child.child.child.child.memoizedState.chats[0].collection

This code is still on....

eduardobento commented 6 years ago

Change Store creation line to this:

window.Store = window.webpackJsonp([], {"bcihgfbdeb": (x, y, z) => window.Store = z('"bcihgfbdeb"')}, '"bcihgfbdeb"');

fyudelgado commented 6 years ago

On which file this line is?

eduardobento commented 6 years ago

@fyudelgado

File: wapi.js Line: 92

WilliamCampolina commented 6 years ago

@fyudelgado Could you solve the problem?

fyudelgado commented 6 years ago

I’m using the versión downloaded from the pip3 install webwhatsapi module for python3.

This works fine on the synchronous version, but using async still not working.

Regards,

Enviado desde mi iPhone

El 30/05/2018, a la(s) 17:56, William notifications@github.com escribió:

@fyudelgado Could you solve the problem?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

{"@context":"http://schema.org","@type":"EmailMessage","potentialAction":{"@type":"ViewAction","target":"https://github.com/mukulhase/WebWhatsapp-Wrapper/issues/239#issuecomment-393346054","url":"https://github.com/mukulhase/WebWhatsapp-Wrapper/issues/239#issuecomment-393346054","name":"View Issue"},"description":"View this Issue on GitHub","publisher":{"@type":"Organization","name":"GitHub","url":"https://github.com"}} {"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/mukulhase/WebWhatsapp-Wrapper","title":"mukulhase/WebWhatsapp-Wrapper","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/mukulhase/WebWhatsapp-Wrapper"}},"updates":{"snippets":[{"icon":"PERSON","message":"@WilliamCampolina in #239: @fyudelgado Could you solve the problem?"}],"action":{"name":"View Issue","url":"https://github.com/mukulhase/WebWhatsapp-Wrapper/issues/239#issuecomment-393346054"}}} { "@type": "MessageCard", "@context": "http://schema.org/extensions", "hideOriginalBody": "false", "originator": "37567f93-e2a7-4e2a-ad37-a9160fc62647", "title": "Re: [mukulhase/WebWhatsapp-Wrapper] lib broke again (#239)", "sections": [ { "text": "", "activityTitle": "William", "activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png", "activitySubtitle": "@WilliamCampolina", "facts": [ ] } ], "potentialAction": [ { "name": "Add a comment", "@type": "ActionCard", "inputs": [ { "isMultiLine": true, "@type": "TextInput", "id": "IssueComment", "isRequired": false } ], "actions": [ { "name": "Comment", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"mukulhase/WebWhatsapp-Wrapper\",\n\"issueId\": 239,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}" } ] }, { "name": "Close issue", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"mukulhase/WebWhatsapp-Wrapper\",\n\"issueId\": 239\n}" }, { "targets": [ { "os": "default", "uri": "https://github.com/mukulhase/WebWhatsapp-Wrapper/issues/239#issuecomment-393346054" } ], "@type": "OpenUri", "name": "View on GitHub" }, { "name": "Unsubscribe", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 340357595\n}" } ], "themeColor": "26292E" }

WilliamCampolina commented 6 years ago

worked with version 3.5.2

kevinkit commented 6 years ago

@fyudelgado have you tried using the most recent version on github?

fyudelgado commented 6 years ago

Yes and not works! William also does that!

Enviado desde mi iPhone

El 31/05/2018, a la(s) 10:21, Kevin notifications@github.com escribió:

@fyudelgado have you tried using the most recent version on github?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

{"@context":"http://schema.org","@type":"EmailMessage","potentialAction":{"@type":"ViewAction","target":"https://github.com/mukulhase/WebWhatsapp-Wrapper/issues/239#issuecomment-393566508","url":"https://github.com/mukulhase/WebWhatsapp-Wrapper/issues/239#issuecomment-393566508","name":"View Issue"},"description":"View this Issue on GitHub","publisher":{"@type":"Organization","name":"GitHub","url":"https://github.com"}} {"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/mukulhase/WebWhatsapp-Wrapper","title":"mukulhase/WebWhatsapp-Wrapper","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/mukulhase/WebWhatsapp-Wrapper"}},"updates":{"snippets":[{"icon":"PERSON","message":"@kevinkit in #239: @fyudelgado have you tried using the most recent version on github?"}],"action":{"name":"View Issue","url":"https://github.com/mukulhase/WebWhatsapp-Wrapper/issues/239#issuecomment-393566508"}}} { "@type": "MessageCard", "@context": "http://schema.org/extensions", "hideOriginalBody": "false", "originator": "37567f93-e2a7-4e2a-ad37-a9160fc62647", "title": "Re: [mukulhase/WebWhatsapp-Wrapper] lib broke again (#239)", "sections": [ { "text": "", "activityTitle": "Kevin", "activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png", "activitySubtitle": "@kevinkit", "facts": [ ] } ], "potentialAction": [ { "name": "Add a comment", "@type": "ActionCard", "inputs": [ { "isMultiLine": true, "@type": "TextInput", "id": "IssueComment", "isRequired": false } ], "actions": [ { "name": "Comment", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"mukulhase/WebWhatsapp-Wrapper\",\n\"issueId\": 239,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}" } ] }, { "name": "Close issue", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"mukulhase/WebWhatsapp-Wrapper\",\n\"issueId\": 239\n}" }, { "targets": [ { "os": "default", "uri": "https://github.com/mukulhase/WebWhatsapp-Wrapper/issues/239#issuecomment-393566508" } ], "@type": "OpenUri", "name": "View on GitHub" }, { "name": "Unsubscribe", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 340357595\n}" } ], "themeColor": "26292E" }