Comments (30)
Hi,
I'm experiencing the same issue as mentioned above. I've tested with different (personal) developer webex accounts (Registered the bot app and run as bot within that webex account(s)).
However, when using my company webex account (Cisco partner) with associated bot it works fine. I can see messages in log from company webex account and personal developer account as well. For both use cases, the same bot app was setup and the same internet/cloud access was established.
Added notification stuff from #41 to DEVICE_DATA. Unfortunately I still cannot see any commands received.
Maybe it's related to the free developer account with some restrictions for associated bots.
from webex_bot.
Strange. Can you post a screenshot of the page that shows the bot info? Are you behind a proxy?
from webex_bot.
I'm not behind a proxy, i'm using my personal computer with home wifi. I've created two 2 bots (same webex developer account) and both of them had the same problem.
Is this the page you're looking for?
from webex_bot.
It probably won't help but i've used this webex bot starter template with Ngrok and it worked fine
from webex_bot.
I tried myself with a new bot I created today and new token and it works fine for me. Hard to know what exactly is going on unless you want to reach out to me with your token and I can try it myself locally.
from webex_bot.
Just tried with my secondary gmail account and also tried with a brand new one. Nothing's happening :( . Where can I reach out to you?
from webex_bot.
Im currently running into the same issue too
from webex_bot.
It is not working for me either. I have tried the following as well:
- Enabled debugging on the websocket. I can see PING/PONGs and keep-alive connections but no messages are received.
- Specified my Webex account email address in approved_users to make sure there are no issues regarding users/rooms approved.
- Made sure I am not behind a proxy, CG-NAT or similar.
from webex_bot.
Please post a bot token and username (bot email) here and I can try. (you can always revoke the token later)
from webex_bot.
Please post a bot token and username (bot email) here and I can try. (you can always revoke the token later)
Sure! Here are the details @fbradyirl: [email protected] and <redacted>
from webex_bot.
Thanks Gerard,
It is working totally fine for me with your bot. Perhaps there is something on your network blocking web socket traffic?
from webex_bot.
import logging
import os
from webex_bot.webex_bot import WebexBot
from webexteamssdk import WebexTeamsAPI
log = logging.getLogger(__name__)
access_token = os.getenv("WEBEX_TEAMS_ACCESS_TOKEN")
# Create a Bot Object
bot = WebexBot(teams_bot_token=access_token,
include_demo_commands=True)
webex_api = WebexTeamsAPI(access_token=access_token)
bot.run()
This was the code I ran with.
from webex_bot.
Perhaps open this page:
https://websocketstest.com
from webex_bot.
Also if you have a possibility to try your laptop on a different network to see if that helps. E.g. tether over 5G instead of your home wifi for example. That might rule out carrier level blocking of certain types of protocols.
from webex_bot.
Hello, I've tried :
- Ethernet cable to home router (Desktop PC)
- Wi-fi to home router (Laptop)
- Wi-fi on my workplace with/without VPN connection (Laptop)
Let's try to debug python version then... 😅 . I've uninstalled everything I've had from python (via control panel + window apps), restarted my PC and installed 3.9.0 as it's suggested on README https://www.python.org/downloads/release/python-390/
Ran the command "pip install webex_bot" and then the .py file. Any other suggestion?
from webex_bot.
It is not working for me either.
May you guys confirm if the account you are using in Webex is from a Cisco Domain?
I am wondering if the fact of being "external" has any kind of impact on the resources we are able to work with.
(e.g. if just someone logged in Webex with @cisco.com or any kind of "approved" accounts scheme are able to use these bots)
from webex_bot.
I am wondering if the fact of being "external" has any kind of impact on the resources we are able to work with.
I just tested with a gmail account I have, logged in as that gmail Webex user and was able to send and receive messages to my bot no problem, so seems it is not a Cisco account issue.
from webex_bot.
If you can provide me with the email address used and the time you are attempting the send (UTC) I can see if I can find anything out on this.
from webex_bot.
@fbradyirl I have just met with a colleague who works at Cisco. We set up the bot on my PC with the code example you porivded and we are seeing the messages he sends from his account on the logs, but not mine. I have tried @gmail.com accounts, as well as registering with the account from my University.
In case you want to investigate further I am sharing you some more details:
- Tested from 14:50 to 15:15 UTC.
- Bot is [email protected]
- Messages sent from @cisc.com and @gmail.com accounts
Thanks,
Gerard
from webex_bot.
Seems to be affecting self signup users only.
from webex_bot.
I managed to get it working through Sandro's suggestion, using Ngrok. It would have saved me some hours having to know that the issue was "affecting self signup users only". Thanks for the troubleshooting.
from webex_bot.
We are testing it now and it turns out it is not self signup users. Starting to narrow it down but it may be todo with the Python version or dependant module.
from webex_bot.
Still investigating...
from webex_bot.
I was testing with Gerard's GMail account logged into the WebEx web client and was able to send messages fine to my bot running locally with Python 3.11.7. However when he tries the same it is not working.
Here are my module versions:
It is certainly baffling at this point.
from webex_bot.
There may be something here I can try and push a new release.
from webex_bot.
@doppelmalz
Same here. That's a good find.
Hi, I'm experiencing the same issue as mentioned above. I've tested with different (personal) developer webex accounts (Registered the bot app and run as bot within that webex account(s)). However, when using my company webex account (Cisco partner) with associated bot it works fine. I can see messages in log from company webex account and personal developer account as well. For both use cases, the same bot app was setup and the same internet/cloud access was established.
Added notification stuff from #41 to DEVICE_DATA. Unfortunately I still cannot see any commands received.
Maybe it's related to the free developer account with some restrictions for associated bots.
from webex_bot.
@venkatesh-hs
The interesting thing is that the websocket flavor of the webex javascript framework (see https://github.com/WebexCommunity/webex-node-bot-framework/blob/main/docs/example3.md)
works great with the free developer account. The implementation of the websocket connection or/and how the server side handles the connection in javascript seems to be different from python with regards to the free developer account.
Nevertheless I would prefer the python way.
from webex_bot.
@venkatesh-hs The interesting thing is that the websocket flavor of the webex javascript framework (see https://github.com/WebexCommunity/webex-node-bot-framework/blob/main/docs/example3.md) works great with the free developer account. The implementation of the websocket connection or/and how the server side handles the connection in javascript seems to be different from python with regards to the free developer account.
Nevertheless I would prefer the python way.
If possible, could you sniff the registration part of the JS library and provide the headers and body of the request to WDM. I can compare.
from webex_bot.
I'm not familiar with javascript. But enabling debug for webex-node-bot-framework and trace for webex-js-sdk provides the following output. Not sure if it helps.
EDIT: Put some logger statements (Keyword DEBUG) in the proper .js files (device registering and websocket connection)
webex-node-bot_2.log
Thanks.
from webex_bot.
I also do not receive anything with my customer account. Ran the bot on corporate and personal devices, seeing identical results. Would love to use this project.
Any findings from the logs so far @fbradyirl ?
Edit: With further testing, I have no luck with three different paid users from different orgs. Nevertheless, a consultant from Cisco tested the bot for me and had success right away. That is, same bot, same code and same machine as well.
from webex_bot.
Related Issues (20)
- TypeError: 'staticmethod' object is not callable, when run the 'help' command - Bug HOT 1
- Future exception was never retrieved HOT 2
- default help card is annoying HOT 3
- webexteamssdk.exceptions.ApiError: [400] Bad Request - Unable to retrieve content HOT 2
- The card displayed for Help restricts the number of buttons to 5 HOT 3
- Example if Response with file attachement HOT 3
- How to add more command_keyword
- Websockets.exceptions.ConnectionClosedError HOT 3
- Running webex_bot on Ubuntu 20.04 gets TypeError on action response
- Websocket connection through Proxy Server HOT 3
- How can we make bot to listen and respond to messages which do not reffer directly to it? Without bot being tagget in the message HOT 13
- Help get user info within command function.. HOT 1
- Bot not responding to messages with attachments (no log output either).
- Webex_bot do not work behind proxy HOT 1
- Bot webhook is setup but bot is not responding. Webhook does not seem to be be reciving anything HOT 18
- ModuleNotFoundError: No module named 'imp' HOT 4
- How to do multi-post responses HOT 1
- Delete the card that shows up as part of pre_execute, when the next chained Command shows its own card
- Install FAILS with python3.12 on Ubuntu 22.04 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webex_bot.