Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vercel前端部署成功,但是访问接口时提示500 #149

Open
Dreamkaka opened this issue Jul 5, 2024 · 7 comments
Open

vercel前端部署成功,但是访问接口时提示500 #149

Dreamkaka opened this issue Jul 5, 2024 · 7 comments

Comments

@Dreamkaka
Copy link

后端能抓到数据也能正常上传data.db,前端也能部署成功,但是一访问接口就会报500函数错误

image

vercel的错误日志:

image

请问下这种情况该如何解决啊

@AGEN233
Copy link

AGEN233 commented Jul 9, 2024

@Uyoahz26
Copy link

SQLAlchemy 降级到 1.4.52 可以暂时解决 亲测有效

@AGEN233
Copy link

AGEN233 commented Jul 10, 2024

SQLAlchemy 降级到 1.4.52 可以暂时解决 亲测有效

老哥换版本要改那个文件,能不能给个教程 (

@Dreamkaka
Copy link
Author

SQLAlchemy降级到 可以暂时解决 亲测有效1.4.52

老哥换版本要改那个文件,能不能给个教程 (

根目录有个requirements.txt的文件,去里面找到那个SQLAlchemy的依赖,然后把版本号改成1.4.52就行了

@CCKNBC
Copy link
Member

CCKNBC commented Jul 11, 2024

感觉日后这种问题会越来越频繁,Node16 对应Python 3.9,后面Vercel弃用的话,新版本依赖很多方法,属性都改了,开发者都不维护的话,项目估计要重构了,但这个代码吧,有些地方确实难评

@jkjoy
Copy link

jkjoy commented Jul 31, 2024

SQLAlchemy降级到 可以暂时解决 亲测有效1.4.52

老哥换版本要改那个文件,能不能给个教程 (

根目录有个requirements.txt的文件,去里面找到那个SQLAlchemy的依赖,然后把版本号改成1.4.52就行了

我改了也没用

@AndersonHJB
Copy link
Contributor

直接先用我这个吧:https://github.com/AndersonHJB/hexo-circle-of-friends

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants