@app.route("/bing", methods=['GET','POST'])
async def bing():

    text2 = request.form.get('text')
    print("test1")
    bot = Chatbot(cookiePath='c:/Users/mozit/cookies.json')
    res = await bot.ask(prompt=text2, conversation_style=ConversationStyle.creative,
                       wss_link="wss://sydney.bing.com/sydney/ChatHub")
    print("test1")
    resulta = res['items']['messages'][1]['text']
    await bot.close()
    return jsonify({"response": res})

    
    

if __name__ == "__main__":
    
    app.run(host="0.0.0.0",port=3712)#,debug=True)

실행하면 
 TypeError: The view function did not return a valid response. The return type must be a string, dict, tuple, Response instance, or WSGI callable, but it was a coroutine.
오류원인의 원인