我在烧瓶中开发了此api:
https://gist.github.com/scaltro/ca5a4a6256ff34a4e4163afacc95c6e0
当我执行此get-on api时:
/api/search?query=dsadsads&offset=0&limit=15&sort=recommended&search_id=1519341673454
返回此错误:
https://gist.github.com/scaltro/374b4303e275e17475eb0b488aa4bb64
moddels数据库如下所示:
https://gist.github.com/scaltro/37ab7d6180e88d1ae23b55142d186c39
我输了一整晚,我不知道问题出在哪里,只有在get中使用查询搜索时才返回此错误
数据库中的
search_query
列是一个整数,而不是您期望的string
。您要么需要手动更改,要么只需重新创建数据库相关问题 更多 >
编程相关推荐