AOSSIE-Org / AOSSIE-Org/Devr.AI

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

未關閉
#238 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
102
分支
137
PR 合併指標
30 天內沒有已合併 PR

描述

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.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。