alfred82santa / whalesong

Whalesong is an asyncio python library to manage WebApps remotely. Currently WhatsappWeb is implemented
https://whalesong.readthedocs.io
MIT License
50 stars 19 forks source link

problem running minibot.py example #117

Open dafner opened 4 years ago

dafner commented 4 years ago

I am testing the minibot.py example and I find that after a certain time, that it is random; the application shows the following messages on the screen:

Stream value: Stream.DISCONNECTED Stop new messages bot Stream value: Stream.RESUMING

This situation appeared repeatedly. After showing those messages, the application stops receiving messages and it is necessary to restart the application.

By the way, the cell phone is connected and receiving messages.

Why does the application stop receiving messages? Is it possible to prevent this situation? Is there any way to reconnect the application without the need to restart it every time this type of situation happens?

Any help will be appreciate

Thanks

alfred82santa commented 4 years ago

It looks that another whatsappweb client is getting session. Just one whatsappweb session can be running at same time.

dafner commented 4 years ago

Hi, Thanks for your prompt answer. I comfirm you that I am using only one session of whalesong connected to one cell phone for testing the application minibot.py and this library. Also, I using another python application with selenium to connect to geckodriver to scraping a web page. This situation can affect the normal funtion of the miniboy.py? If it this so, the solution could be run the minibot,py inside a docker container? Best regards

alfred82santa commented 4 years ago

What you mean? You are using another app connected to same geckodriver?? or to another instance? are you sure you are using same page/tab?