第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

flask_sqlalchemy 無法返回所有行

flask_sqlalchemy 無法返回所有行

四季花海 2023-05-23 16:46:12
當(dāng)我嘗試向“http://{{MY IP}}:5000/alldocuments”發(fā)送 GET 請求時,出現(xiàn)錯誤。我正在關(guān)注 youtube 視頻教程,甚至來自 github 的直接示例也不起作用。所有其他路線都有效,但我無法使這條路線有效。我無法在 SQLAlchemy 的文檔中找到我的答案,但也許我只是想念它。我不知道出了什么問題?我正在傳遞帶有附加數(shù)據(jù)的結(jié)果對象。我在 youtube 上關(guān)注這個視頻:https://www.youtube.com/watch ?v=PTZiDnuC86g這是包含教程中完整代碼的 github: https: //github.com/bradtraversy/flask_sqlalchemy_rest我收到此錯誤:<!--Traceback (most recent call last):  File "/usr/lib/python3/dist-packages/flask/app.py", line 2309, in __call__    return self.wsgi_app(environ, start_response)  File "/usr/lib/python3/dist-packages/flask/app.py", line 2295, in wsgi_app    response = self.handle_exception(e)  File "/home/pi/.local/lib/python3.7/site-packages/flask_restful/__init__.py", line 272, in error_router    return original_handler(e)  File "/usr/lib/python3/dist-packages/flask/app.py", line 1741, in handle_exception    reraise(exc_type, exc_value, tb)  File "/usr/lib/python3/dist-packages/flask/_compat.py", line 35, in reraise    raise value  File "/usr/lib/python3/dist-packages/flask/app.py", line 2292, in wsgi_app    response = self.full_dispatch_request()  File "/usr/lib/python3/dist-packages/flask/app.py", line 1815, in full_dispatch_request    rv = self.handle_user_exception(e)  File "/home/pi/.local/lib/python3.7/site-packages/flask_restful/__init__.py", line 272, in error_router    return original_handler(e)  File "/usr/lib/python3/dist-packages/flask/app.py", line 1718, in handle_user_exception    reraise(exc_type, exc_value, tb)  File "/usr/lib/python3/dist-packages/flask/_compat.py", line 35, in reraise    raise value  File "/usr/lib/python3/dist-packages/flask/app.py", line 1813, in full_dispatch_request    rv = self.dispatch_request()  File "/usr/lib/python3/dist-packages/flask/app.py", line 1799, in dispatch_request    return self.view_functions[rule.endpoint](**req.view_args)  File "/home/pi/GotangoDocs/Backend/server.py", line 76, in get_documents    return jsonify(result.data)AttributeError: 'list' object has no attribute 'data'-->
查看完整描述

目前暫無任何回答

  • 0 回答
  • 0 關(guān)注
  • 126 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號