QingdaoU / OnlineJudge

Open source online judge based on Vue, Django and Docker. | 青岛大学开源 Online Judge | QQ群 496710125 | admin@qduoj.com
http://opensource.qduoj.com/
MIT License
6.05k stars 1.47k forks source link

导入试题时,报 `Server Error` ,试题 xml 已用 EasyFPSViewer 查看是正常的 #434

Open booox opened 1 year ago

booox commented 1 year ago

请教如何解决上传 FPS 问题出现 Server Error 错误? 请问具体原因是什么?如何解决呢?

环境

按官方教程使用 docker-compose 部署,还算顺利

问题描述

zhblue/freeproblemset 下载了样题,尝试通过 Import FPS Problems (beta) 来导入,报 Server Error

已经尝试

用交互式模式,进入容器内部 docker exec -it oj-backend /bin/sh

切换到日志文件夹 # cd /data/log/

查看日志 # tail gunicorn.log 提示信息如下:

[2022-12-09 00:41:57] - [ERROR] - [sentry.errors:684]  - Sentry responded with an API error: RateLimited(None)
b'Sentry responded with an API error: RateLimited(None)'
[2022-12-09 00:41:57] - [ERROR] - [sentry.errors.uncaught:712]  - ["Invalid xml, error 'test_input' tag order", '  File "utils/api/api.py", line 149, in dispatch', '  File "django/views/generic/base.py", line 88, in dispatch', '  File "problem/views/admin.py", line 683, in post', '  File "fps/parser.py", line 32, in parse', '  File "fps/parser.py", line 97, in _parse_one_problem']

多谢!

skstudying commented 1 year ago

遇到完全相同的问题,请问你解决了吗?

teriyakisushi commented 1 year ago

同样的问题,蹲个解决方案

Asus-Github commented 3 months ago

同蹲

mikucat0309 commented 3 months ago

窝草,这项目的 Sentry 应该早就失传,汇入题目 bug 的部分我研究一下

garry-jay commented 2 months ago

请问现在有解决方案了吗

zhblue commented 2 months ago

可能导致这个问题的原因是不支持新版本号和小数限时,可以尝试调低文件中的版本号,并把时间限制改为整数,然后再导入。