Closed hallyn closed 4 years ago
Ping?
It would be a tremendous help to both myself and my team if we could get this working.
Hm, maybe this project is out of date? Maybe there's a newer python or golang teams api framework i should be using?
@hallyn I do apologize that you did not receive a timely response. This is a community-developed and maintained project, and at first glance, it looked like your issue was something local to your setup.
I have confirmed the bot-example-flask.py
example code is working as expected. I was unable to reproduce your issue using the code samples you provided (thank you for those!).
You have probably long moved past working on this, but perchance you are still curious:
#!/usr/bin/python
. Perhaps you meant #!/usr/bin/env python
? You may have been using a different Python interpreter than you were expecting. This caused my system to use the system-installed Python v2 interpreter when I was running your script.Thanks, this would indeed still be useful to me. I'll aim to re-try and verify whether i was using UTF-8 and python3. If python2 is known to not work, that could well be it.
Great. Let me know if you run into any issues. For your reference, here is a GIST with the files I used in attempting to recreate your issue. I hope it helps.
I request hooks to be send to my server using:
and then post a message to a test channel using:
using the command:
The bot-example-flask.py instance on MYHOST does get a message, but complains about bad request syntax, like:
(109 lines of output, not all pasted above)