ValueError: [TypeError("'coroutine' object is not iterable"), TypeError('vars() argument must have __dict__ attribute')]
在fastapi ,uvloop使用异步函数
使用异步的时候 ‘coroutine’ object is not iterable错误
原来发现,是同步函数中调用异步代码,
请在外面函数中加上async ,await
最后
以上就是多情草莓最近收集整理的关于‘coroutine‘ object is not iterable的全部内容,更多相关‘coroutine‘内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复