Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to trigger the webhook #359

Closed
Harirupa opened this issue Aug 19, 2021 · 10 comments
Closed

Unable to trigger the webhook #359

Harirupa opened this issue Aug 19, 2021 · 10 comments
Assignees

Comments

@Harirupa
Copy link

Just wondering if someone can help me with the following error. Followed through the documentation but unable to integrate my app with WebEx. @murali1996 has been helping me with app development.

WebexBotServerException: WEBHOOK_ID not set
Thanks.

@vrdn-23
Copy link
Contributor

vrdn-23 commented Aug 19, 2021

The error seems to indicate that you have not set the Webhook ID for the Webex app. You can generate a Webhook ID by following the steps mentioned here. If you've already followed these steps, please provide us with the relevant app files and code snippet you have been using to integrate with Webex

@Harirupa
Copy link
Author

Harirupa commented Aug 20, 2021

Thanks @vrdn-23 . Yes, I have followed through all the steps. Please see attached code snippet and config file. Thanks. Happy to send entire app directory through email if that can help me sort the problem.
ch_hr_assistant_latest_mm_v4_webhook_trail1.pdf
webex_bot_server_py

@vrdn-23
Copy link
Contributor

vrdn-23 commented Aug 20, 2021

@Harirupa
It seems the issue here is the way you are storing the values. os.environ.get is used to access the value of an environment variable that is specified within the function name. In the ideal case, in your code snippet, we should have the following lines:

WEBHOOK_ID = os.environ.get('WEBHOOK_ID')
ACCESS_TOKEN = os.environ.get('ACCESS_TOKEN')

where the values for access token and web hook id are exported into the shell environment beforehand. In this particular case however, just removing the os.environ.get part from line 15 and 18 and just storing the string values themselves should suffice to solve this error.

WEBHOOK_ID = 'Y2lzY29zcGFyaz.........'
ACCESS_TOKEN = 'ZmQzNjViNTU........'

Let me know if there are any more questions and hope this helps!

@vrdn-23 vrdn-23 self-assigned this Aug 20, 2021
@Harirupa
Copy link
Author

Thank you that was helpful.
It is running on the port now.

@Harirupa
Copy link
Author

Harirupa commented Aug 23, 2021

Hello @vrdn-23,
Can you or someone help me further with the integration please?
Webex bot server is now running on http://localhost:8080/
I have created a Webex Teams space and added the bot to the space. Unable to trigger the webhook, when I @mention the bot and converse with it.
I made an App Hub submission assuming it may be required for the app to respond.

@Harirupa Harirupa changed the title WebexBotServerException error Unable to trigger the webhook Aug 23, 2021
@Harirupa Harirupa reopened this Aug 23, 2021
@vrdn-23
Copy link
Contributor

vrdn-23 commented Aug 23, 2021

Hi @Harirupa,
Are you using the ngrok setup as mentioned in the Mindmeld docs? If yes, then that could be the underlying issue. As mentioned in #334, due to some security constraints by the Cisco Webhook Team, ngrok URLs are no longer supported as valid endpoints for bot integrations. The current known workaround for this is to have an app running on an AWS/GCP instance and provide it's public IP as the endpoint. Please let me know if you would require any further assistance regarding this setup and I'd be happy to help!

@Harirupa
Copy link
Author

Harirupa commented Aug 24, 2021

@vrdn-23
Thank you. Yes, I am using ngrok setup (following exactly what was suggested in docs).
It would be really great if you could help me with your suggestion of running the app on an AWS/GCP instance and provide it's public IP as the endpoint. I am totally new to this and definitely need step by step instructions if that is possible. As mentioned in #334 it would be great if Cisco pays attention to this fact.

@vuthaluru
Copy link

@vrdn-23
Any chance of help me with the above query! Thanks.

@vrdn-23
Copy link
Contributor

vrdn-23 commented Sep 3, 2021

Hey @vuthaluru @Harirupa ,
Sorry for the delayed response on this. I was caught up with some other work. Since both of you seem to be stuck with the same problem, it would perhaps be better if we can take this offline. Feel free to shoot me an email (in my GitHub profile) and we can certainly arrange an alternate solution outside of this thread!

I am closing this issue for now as the scope of this problem/solution is not currently within the purview of Mindmeld and is being addressed by another issue (#334).

@vrdn-23 vrdn-23 closed this as completed Sep 3, 2021
@Harirupa
Copy link
Author

Harirupa commented Sep 6, 2021

@vrdn-23 , please check your email (vrdn@hey.com). Hope to receive a response soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants