BUG: Authentication failure, missing repo-stats API endpoint, and Discord bot startup errors

未关闭
#238 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

@vinay1359 已经在做这个了。

开始于 2026年1月14日。

  • #239 来自 @vinay1359 —— 未关闭

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
github, python

调研方向

首先复现登录 401、/api/repo-stats 404 以及 bot 的 privileged-intent 启动错误。沿着 backend 身份验证路径、API 路由注册和 bot 启动/清理流程跟踪每个故障。身份验证正常、仓库统计信息能够加载且 bot 能够干净地启动,即表示完成。

由索引模型根据 Issue 内容生成。

描述

The application currently has multiple runtime issues across the backend, frontend, and Discord bot that together prevent core functionality from working as expected.

1. Backend authentication crash

When users attempt to log in through the website, the backend crashes with authentication-related errors. The server returns a 401 Unauthorized response and logs show an error similar to:

coroutine object has no attribute 'user'

Because of this, users are unable to authenticate or access protected parts of the application.

2. Missing /api/repo-stats endpoint

The frontend attempts to fetch GitHub repository statistics from the /api/repo-stats endpoint. However, this endpoint currently returns a 404 Not Found response. It appears that the route is not properly registered or connected to the main backend application, causing the repo stats feature to fail entirely.

3. Discord bot privileged intent startup error

The Discord bot throws errors related to privileged intents not being ready when it starts. A cleanup task is triggered too early during startup, before the required intents are fully initialized, which causes the bot to error out.

Impact

  • Users cannot log in to the website
  • Repository statistics are not displayed on the frontend
  • The Discord bot fails to start cleanly
  • These issues together block normal usage of the application.

I am currently working on addressing these issues and will submit a pull request once the fixes are ready.

主要语言
Python
星标
103
派生
143
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

AOSSIE-Org/Devr.AI 的其他 Issue

查看 AOSSIE-Org/Devr.AI 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。