You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to use AsyncOAuthSettings with SQLAlchemyOAuthStateStore. However, I stumbled upon this error and found out that SQLAlchemyOAuthStateStore doesn't support async operations:
File "/usr/local/lib/python3.10/site-packages/slack_bolt/oauth/async_oauth_flow.py", line 167, in handle_installation
state = await self.issue_new_state(request)
File "/usr/local/lib/python3.10/site-packages/slack_bolt/oauth/async_oauth_flow.py", line 194, in issue_new_state
return await self.settings.state_store.async_issue()
AttributeError: 'SQLAlchemyOAuthStateStore' object has no attribute 'async_issue'
I wonder if there are any plans to support this in near future?
Category (place an x in each of the [ ])
slack_sdk.web.WebClient (sync/async) (Web API client)
This sounds a great addition in the future! However, since the asyncio support in SQLAlchemy is still in beta, we are not planning to add asyncio support in the short term. Once the built-in asyncio support in SQLAlchemy is GAed, we are happy to add the support on this SDK side.
For now, you may want to reuse the example code here. If you are fine to use databases, which is a different library relying on SQLAlchemy, the implementation should work well for you.
seratch
changed the title
Consider adding async support for SQLAlchemyOAuthStateStore
Add asyncio support to SQLAlchemy based InstallationStore/StateStore
Oct 14, 2022
Hi @seratch
It seems that built-in asyncio support in SQLAlchemy has reached GA status in version 2.0.
I noticed that you still support 1.4.3, so you might not support asyncio in this SDK yet. However, it would be greatly appreciated if you could add support for it when you stop supporting 1.4.3.
Hi, I'm trying to use AsyncOAuthSettings with SQLAlchemyOAuthStateStore. However, I stumbled upon this error and found out that SQLAlchemyOAuthStateStore doesn't support async operations:
I wonder if there are any plans to support this in near future?
Category (place an
x
in each of the[ ]
)Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.
The text was updated successfully, but these errors were encountered: