Open ReenaAcharya opened 6 years ago
Hi Reena,
Make sure your options endpoint and action endpoint are accessible to Slack. This example walks through using ngrok to allow Slack to make requests to your server
Hi,
When I pass message menu manually in attachment_json it shows up in message menu. When I use "data_source": "external". It doesn't show up in message menu. Also when selecting the message menu I get no response.
Thanks.
Do you get a response if you request the menu options from your endpoint manually with curl? 🤔
@Roach, I am having the same issue. I've been struggling with this for the last few days. I tried your example line for line (except replacing the tokens and channel of course). I tried with my own code and a button and also just got the following message. I tried using the https://slack.com/oauth/authorize API as well. I successfully got my bot token back, but I could have just copied this from the "OAuth & Permissions" page anyways.
Oh no, something went wrong. Please try that again.
Here is with your example code:
Never loads.
My log is empty, it looks like slack is never sending the POST request to my webservice.
Here is what my interactive component settings look like at api.slack.com
EDIT: Other HTTP POST's do work to the webservice. I tested with Postman.
Wow, I just realized something really really stupid..... Slack isn't a local app haha, no wonder it cant reach 127.0.0.1. I wasted like 5 hours on that, that's embarrassing.
@MartYtheSpaceBaker no worries! I will add some content around using ngrok to the README.
The example for our Events API Adapter has a pretty good guide: https://github.com/slackapi/python-slack-events-api/tree/master/example
@ReenaAcharya can you confirm that you're using localtunnel or ngrok to make your app's API endpoints available to Slack's POSTs?
Hey, integration with ngrok worked for me. Although, when I try to change menu values, I get the same list items and corresponding responses again.
I did try localtunnel.me and it worked OK but when I put it on my server smth is not OK, it's not called message menus and Interactivity url. My urls are https and accessible. Other endpoints, like commands, works OK, but this one doe not. Any ideas? How can we see some debug from slack side?
use ngrok to tunnel slack request to your localhost. this link documentation contain how to set up ngrok : https://github.com/slackapi/python-slack-events-api/tree/master/example your message just shows loading because the endpoints is mixed up. REQUEST URL is the slack/message-options and MENU URL is slack/message-actions hope this helps.
Hi,
While executing the script I message menus doesn't load.It takes time. Any suggestions here.
Thanks.