-
Notifications
You must be signed in to change notification settings - Fork 5
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
getting 404 with the sample #26
Comments
@RoboDonut Have you configured the callback url, in the example we use |
yes, i set to |
@RoboDonut Could you post your full code here? |
Yeah |
|
if i add in a typical
|
The URL I set in the slash command is theoasis.mydissent.net:5000 I believe I've tested both get a post methods |
@RoboDonut Oops, It seems you don't use the post method, the message was posted by slack official server to your end point, so if you want to simulate this behavior you need to send post. You can use postman(a chrome extension) or curl or httpie. Here's the data we get from the post. You may construct the request with those fields. token = request.form.get('token')
team_id = request.form.get('team_id')
team_domain = request.form.get('team_domain')
channel_id = request.form.get('channel_id')
channel_name = request.form.get('channel_name')
timestamp = request.form.get('timestamp')
user_id = request.form.get('user_id')
user_name = request.form.get('user_name')
text = request.form.get('text')
trigger_word = request.form.get('trigger_word')
|
even when i set the command to post it still fails. :( |
➜ ~ curl -d 'text=1' http://theoasis.mydissent.net:5000/flaskyou
{
"text": "!1"
}% I try to post an empty body to your server, and it returns something may helpful to you. I note you are using windows, so your system may not have curl, you can use postman instead, |
thank you for all your fast help. i'll keep working on it |
404 with the sample if i drop in
@app.route('/')
i get a page (but no response). i'm new to flask so any help is awesome.The text was updated successfully, but these errors were encountered: