Closed JamieSinn closed 5 years ago
Hi @JamieSinn, Thanks for writing in and letting us know about this issue. I've not been able to find a root cause yet, but I'm still looking into it. I'll post back soon.
Thanks!
I'd hate to have to re-write this in a different language because of this.
Jamie, I checked out your code on Github in an unsuccessful attempt to reproduce the the exact error that you were getting. In the process however I discovered an existing issue on Stack Overflow that seemed highly related to the stack trace you've posted above.
The following work around is also suggested on Google's App Engine docs.
from slackeventsapi import SlackEventAdapter
# slackclient depends on requests; ensure requests_toolbelt is imported afterwards.
from slackclient import SlackClient
import requests_toolbelt.adapters.appengine
# Use the App Engine Requests adapter. This makes sure that Requests uses
# URLFetch.
requests_toolbelt.adapters.appengine.monkeypatch()
# The rest of your code below
I'd love to know if this solves the problem you're facing. That being said, I've still not been able to find any issues in this project that would cause this error. Opening an issue with Google may yield to more information to your cause.
Weird, my comment didn't post...
Anyway, thank you a ton @RodneyU215! The workaround did work! I oddly couldn't find the stack article you found, or the GAE docs when debugging. Much appreciated!
Maybe this is something to add to the readme?
Description
Fails to respond/create request to reply to slack when running on GAE Standard with a Flask backend.
What type of issue is this? (place an
x
in one of the[ ]
)Requirements
Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
slackeventsapi version: 2.0.0 python version: 2.7 OS version(s): Google App Engine Standard
Steps to reproduce:
Expected result:
Conversation to be opened without issue
Actual result:
Failed to open conversation
Stack Trace below
Attachments: